/*
Theme Name: Card
Theme URI: https://varnify.com/themes/card/
Author: Varnify
Author URI: https://varnify.com/
Description: A block theme for independent professionals and small practices: consultants and coaches, therapists and counsellors, solicitors, lawyers and accountants. The front page is your business card at full size, pressed into the page; its back is the appointment card, which the built-in booking fills in with your next free time. Letterpress in black and one ink you choose, black and white photographs, fees in the open, the licence under each name, case studies, writing, and two-way Google Calendar sync. One price, every feature included, no upsells.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
Update URI: https://varnify.com/themes/card/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: varnify-card
Tags: one-column, block-patterns, block-styles, full-site-editing, portfolio, custom-colors, custom-menu, editor-style, style-variations, accessibility-ready
*/


/* ---------------------------------------------------------------------------
   Card: letterpress on coloured stock.

   The owner's business card is pressed into an almost-white page; its back,
   the appointment card, is printed on the palest tint of one ink. Black
   for every word, black and white photographs, and the ink only in printed
   objects: the core line along a card's edge, index tabs, the booking's
   entries, and one tinted sheet per page.

   Colours come from the palette (theme.json, a style variation, or Styles,
   Colors), never from a hex here. "Your ink" (slug accent) is the only
   colour an owner needs to choose; the core line and the tinted back are
   mixed from it below. Inc/class-varnify-card-ink.php does the same maths
   to check the ink can be read, and if it cannot, sets --varnify-card-ink
   to the nearest shade that can.

   Type comes from the owner's choice of Headings (the card's face: names,
   tabs, buttons, small headings) and Text (reading, and the large serif
   headlines), published as --varnify-card-font-heading and
   --varnify-card-font-text by inc/class-varnify-card-fonts.php.

   The impression is CSS: inset light and shade on type and blanks, a
   stacked edge under each card. No texture images.
   --------------------------------------------------------------------------- */

:root {
	--varnify-card-ink: var(--wp--preset--color--accent, #7a5a0e);

	--vc-page: var(--wp--preset--color--base, #e5e4df);
	--vc-card: var(--wp--preset--color--shade, #fbf9f4);
	--vc-black: var(--wp--preset--color--ink, #1b1b19);
	--vc-grey: var(--wp--preset--color--muted, #55534d);
	--vc-pressed: var(--wp--preset--color--line, #a9a79f);
	--vc-ink: var(--varnify-card-ink);
	--vc-core: color-mix(in oklch, var(--vc-ink) 89%, oklch(0.98 0.16 none));
	--vc-back: color-mix(in oklch, var(--vc-ink) 6%, oklch(0.97 0.012 none));
	--vc-blank: color-mix(in oklab, var(--vc-grey) 88%, var(--vc-card));
	--vc-face-edge: color-mix(in oklab, var(--vc-card) 88%, #8a7f6a);
	--vc-back-edge: color-mix(in oklab, var(--vc-back) 80%, #9a948a);

	--vc-face: var(--varnify-card-font-heading, var(--wp--preset--font-family--anybody));
	--vc-text: var(--varnify-card-font-text, var(--wp--preset--font-family--source-serif));

	--vc-gutter: var(--wp--custom--gutter, clamp(16px, 6.6vw, 96px));
	--vc-section: clamp(72px, 9vw, 136px);
	--vc-e: 5px;

	/* A rule pressed blind into the page (no ink): a shallow trough, its
	   upper edge in shade and the light catching its lower lip. Lists and
	   dividers on the open page use it; ruled lines printed on a card (the
	   fee rows, the facts, the blanks) stay black. */
	--vc-groove: rgb(52 40 20 / 0.13);
	--vc-groove-edge: rgb(52 40 20 / 0.34);
	--vc-groove-light: rgb(255 255 255 / 0.9);

	/* Type pressed into thick board: light below, shade above. */
	--vc-press: 0 1px 0 rgb(255 255 255 / 0.95), 0 -0.6px 0 rgb(60 45 20 / 0.28);
}

/* Every card's stacked edge. Declared on the cards themselves, not on
   :root, so a card's own --vc-e (a thicker board for a bigger card) is
   what the edge is measured in. */
:where(.varnify-card-cc, .varnify-card-first, .varnify-card-work__sheet, .varnify-card-appt, .varnify-card-feecard, .varnify-card-row, .varnify-card-posts > li, .varnify-card-case__text, .varnify-card-blankprint, .varnify-card-start, .varnify-card-slip, .wp-block-varnify-card-case-facts.is-list, .varnify-card-next-step__row, .varnify-card-essay, .varnify-card-read-enough, .varnify-card-photoband figcaption, .varnify-card-book-head__facts, .varnify-card-regcard, .varnify-card-steps, .varnify-card-article__nav a, .varnify-card-single--essay .varnify-card-single__head, .varnify-card-nav .wp-block-navigation-item) {
	/* A card lying on the page: white face, a thick coloured core, tinted
	   back, then a tight contact shadow where it presses into the page and a
	   short soft one beyond it. Heavy board, so it reads at 200px wide. */
	--vc-edge:
		0 0 0 1px rgb(60 50 30 / 0.1),
		0 calc(var(--vc-e) * 0.3) 0 0 var(--vc-face-edge),
		0 calc(var(--vc-e) * 1.2) 0 0 var(--vc-core),
		0 calc(var(--vc-e) * 1.55) 0 0 var(--vc-back-edge),
		0 calc(var(--vc-e) * 1.75) calc(var(--vc-e) * 0.5) 0 rgb(20 16 10 / 0.2),
		0 calc(var(--vc-e) * 3) calc(var(--vc-e) * 3.2) calc(var(--vc-e) * -1.1) rgb(20 16 10 / 0.42);

	/* The coloured core is the letterpress signature, kept for the two
	   cards that carry it: the calling card and the appointment card.
	   Every other piece of paper is cut for its role:

	   --vc-stack  a card on top of its own pile (a case file, Start here,
	               the address card): two sheets showing a paper edge
	               below and to the right, a short contact shadow.
	   --vc-flat   a card laid flat on the table (a fee card, an essay in
	               the file, a caption slip): its cut edge only, no shadow.
	   --vc-leaf   a folded leaflet: thin paper, a soft shadow from the
	               folds lifting off the table, no board. */
	--vc-stack:
		0 0 0 1px rgb(60 50 30 / 0.12),
		3px 4px 0 -1px color-mix(in oklab, var(--vc-card) 95%, #8a7f6a),
		3px 4px 0 0 rgb(60 50 30 / 0.2),
		6px 8px 0 -1px color-mix(in oklab, var(--vc-card) 90%, #8a7f6a),
		6px 8px 0 0 rgb(60 50 30 / 0.22),
		4px 13px 16px -8px rgb(20 16 10 / 0.32);
	--vc-flat: 0 1px 0 0 rgb(60 50 30 / 0.2);
	--vc-leaf:
		0 0 0 1px rgb(60 50 30 / 0.1),
		0 1px 0 0 var(--vc-face-edge),
		0 14px 22px -14px rgb(20 16 10 / 0.42);
}

body {
	background: var(--vc-page);
	color: var(--vc-black);
	font-family: var(--vc-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(input, select, textarea, button) {
	font-family: inherit;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--vc-black);
	outline-offset: 3px;
}

::selection {
	background: var(--vc-back);
	color: var(--vc-black);
}

h1,
h2 {
	font-optical-sizing: auto;
}

/* No heading, button or label ends on a lone word. */
h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p,
li,
dd,
figcaption,
label {
	text-wrap: pretty;
}

.wp-site-blocks {
	overflow-x: clip;
}

/* Photographs print in black and white, unless set "In colour". */
:where(.wp-block-image, .wp-block-post-featured-image, .wp-block-cover) img:not(.is-style-varnify-card-colour img) {
	filter: grayscale(1) contrast(1.08);
}

.is-style-varnify-card-colour img {
	filter: none;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* WordPress's skip link shows on focus by resetting clip-path only; the
   clip above would keep the focused link cut to nothing. */
.screen-reader-text:focus {
	clip: auto;
}


/* ---------------------------------------------------------------------------
   Objects: the index tab, the card, the appointment back
   --------------------------------------------------------------------------- */

.varnify-card-tab {
	display: inline-block;
	padding: 7px 14px 6px;
	background: var(--vc-ink);
	color: var(--vc-card);
	font-family: var(--vc-face);
	font-size: 13px;
	font-stretch: 112%;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
	clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

/* The calling card. */
.varnify-card-cc {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	aspect-ratio: 85 / 55;
	padding: 6.5% 6.5% 5.5%;
	container-type: inline-size;
	background: var(--vc-card);
	color: var(--vc-black);
	box-shadow: var(--vc-edge);
	overflow: clip;
}

/* The card is its own container: sizes inside it are in cqw, its padding in
   % (a box cannot measure itself in its own container units). cqw measures
   the content box, 87% of the card, so the canvas's sizes (in hundredths of
   the whole card) are divided by 0.87. */
.varnify-card-cc > * {
	position: relative;
	margin: 0;
}

.varnify-card-cc__mono {
	position: absolute !important;
	top: 1.15cqw;
	right: 7.47cqw;
	font-family: var(--vc-face);
	font-size: 34.48cqw;
	font-stretch: 130%;
	font-weight: 800;
	line-height: 1;
	color: color-mix(in oklab, var(--vc-card) 94%, #8a7a55);
	text-shadow: 0 0.4cqw 0.29cqw rgb(255 255 255 / 1), 0 -0.34cqw 0.4cqw rgb(70 55 30 / 0.45);
	pointer-events: none;
	user-select: none;
}

.varnify-card-cc__firm {
	max-width: 71.26cqw;
	font-family: var(--vc-face);
	font-size: max(10px, 3.56cqw);
	font-stretch: 150%;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.55;
	text-transform: uppercase;
	text-shadow: var(--vc-press);
}

.varnify-card-cc__name {
	margin-top: 19cqw !important;
	font-family: var(--vc-face);
	font-size: 9.89cqw;
	font-stretch: 118%;
	font-weight: 620;
	letter-spacing: -0.01em;
	line-height: 1.02;
	overflow-wrap: anywhere;
	text-shadow: var(--vc-press);
}

.varnify-card-cc__name:first-of-type:not(.varnify-card-cc__firm ~ *) {
	margin-top: auto !important;
}

.varnify-card-cc.is-long .varnify-card-cc__name {
	font-size: 8.05cqw;
	font-stretch: 100%;
}

.varnify-card-cc.is-longer .varnify-card-cc__name {
	font-size: 6.44cqw;
	font-stretch: 88%;
}

.varnify-card-cc__role {
	margin-top: 2.99cqw !important;
	font-family: var(--vc-text);
	font-size: max(13px, 4.94cqw);
	line-height: 1.3;
	color: var(--vc-grey);
}

.varnify-card-cc__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6em 3.45cqw;
	margin-top: auto !important;
	padding-top: 4.6cqw;
	font-family: var(--vc-face);
	font-size: max(11px, 3.1cqw);
	font-stretch: 110%;
	letter-spacing: 0.02em;
	line-height: 1.4;
	text-shadow: var(--vc-press);
}

.varnify-card-cc__foot a {
	color: inherit;
	text-decoration: none;
}

.varnify-card-cc__foot a:hover {
	text-decoration: underline;
}

/* The therapist's card: 74 x 55, squarer, with lightly rounded cotton
   corners, no initial; the name in the reading serif, the role in italic
   and a short rule in the ink. */
.varnify-card-cc.is-soft {
	aspect-ratio: 74 / 55;
	padding: 7.5% 7.5% 6.5%;
	border-radius: 4.6% / 6.2%;
}

.varnify-card-cc.is-soft .varnify-card-cc__firm {
	font-size: max(10px, 3.3cqw);
	font-weight: 600;
	letter-spacing: 0.18em;
}

.varnify-card-cc.is-soft .varnify-card-cc__name {
	margin-top: auto !important;
	font-family: var(--vc-text);
	font-size: 11.6cqw;
	font-stretch: 100%;
	font-weight: 400;
	letter-spacing: -0.014em;
	line-height: 1.04;
}

.varnify-card-cc.is-soft.is-long .varnify-card-cc__name {
	font-size: 9.6cqw;
}

.varnify-card-cc.is-soft.is-longer .varnify-card-cc__name {
	font-size: 7.8cqw;
}

.varnify-card-cc.is-soft .varnify-card-cc__role {
	margin-top: 1.6cqw !important;
	font-size: max(12.5px, 4.6cqw);
	font-style: italic;
}

.varnify-card-cc.is-soft .varnify-card-cc__role::after {
	content: "";
	display: block;
	width: 10cqw;
	height: max(1.5px, 0.42cqw);
	margin-top: 4.6cqw;
	background: var(--vc-ink);
}

.varnify-card-cc.is-soft .varnify-card-cc__foot {
	margin-top: 4.2cqw !important;
	padding-top: 0;
}

/* The practice's card: 100 x 55, the partners' card of an old firm,
   centred, with a fine double rule engraved inside the edge (equal on all
   four sides: the insets are in each side's own percentage). */
.varnify-card-cc.is-engraved {
	aspect-ratio: 100 / 55;
	align-items: center;
	padding: 6% 7% 5.4%;
	text-align: center;
}

.varnify-card-cc.is-engraved::before {
	content: "";
	position: absolute;
	inset: 4.2% 2.3%;
	box-shadow:
		inset 0 0 0 1.5px var(--vc-black),
		inset 0 0 0 4.5px var(--vc-card),
		inset 0 0 0 5.25px var(--vc-black);
	pointer-events: none;
}

.varnify-card-cc.is-engraved .varnify-card-cc__name {
	max-width: 100%;
	margin-top: 1cqw !important;
	font-size: 6.6cqw;
	font-stretch: 125%;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.1;
	text-transform: uppercase;
	/* The tracking after the last letter would push the name off centre. */
	margin-right: -0.16em !important;
}

.varnify-card-cc.is-engraved.is-long .varnify-card-cc__name {
	font-size: 5.4cqw;
}

.varnify-card-cc.is-engraved.is-longer .varnify-card-cc__name {
	font-size: 4.4cqw;
	font-stretch: 105%;
}

.varnify-card-cc.is-engraved .varnify-card-cc__role {
	margin-top: 1.6cqw !important;
	font-size: max(12px, 3.5cqw);
	font-style: italic;
}

.varnify-card-cc.is-engraved .varnify-card-cc__role::after {
	content: "";
	display: block;
	width: 6cqw;
	height: max(1.5px, 0.32cqw);
	margin: 2.6cqw auto 0;
	background: var(--vc-ink);
}

.varnify-card-cc__partners {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.2cqw 11cqw;
	margin-top: auto !important;
	text-shadow: var(--vc-press);
}

.varnify-card-cc__partner {
	display: grid;
}

.varnify-card-cc__partner b {
	font-family: var(--vc-face);
	font-size: max(11px, 3.3cqw);
	font-stretch: 110%;
	font-weight: 600;
}

.varnify-card-cc__partner i {
	font-size: max(11px, 2.9cqw);
	color: var(--vc-grey);
}

.varnify-card-cc.is-engraved .varnify-card-cc__foot {
	justify-content: center;
	row-gap: 0.2em;
	margin-top: 4.4cqw !important;
	padding-top: 0;
	font-size: max(10.5px, 2.6cqw);
}

.varnify-card-cc.is-engraved .varnify-card-cc__foot {
	column-gap: 2.2em;
}

.varnify-card-cc.is-engraved .varnify-card-cc__foot span {
	white-space: nowrap;
}

/* The appointment card: the calling card's back. */
.varnify-card-appt {
	position: relative;
	box-sizing: border-box;
	padding: 5.5% 6.5% 6%;
	container-type: inline-size;
	background: var(--vc-back);
	color: var(--vc-black);
	box-shadow: var(--vc-edge);
}

/* The therapist's appointment card has the same cotton corners. */
.varnify-card-appt.is-soft {
	border-radius: 12px;
}

.varnify-card-appt > .varnify-card-tab {
	position: absolute;
	top: 0;
	right: 7.47cqw;
	transform: translateY(-100%);
}

.varnify-card-appt__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0;
}

.varnify-card-appt__title {
	font-family: var(--vc-face);
	font-size: max(13px, 4.48cqw);
	font-stretch: 150%;
	font-weight: 720;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.varnify-card-appt__with {
	font-size: max(13px, 3.91cqw);
	color: var(--vc-grey);
}

.varnify-card-appt__lines {
	margin: 2.3cqw 0 0;
}

/* The label sits on the line's first baseline: "at" beside the time, not
   beside the visitor's own time under it. */
.varnify-card-appt__line {
	display: grid;
	grid-template-columns: max(26px, 9.2cqw) 1fr;
	align-items: baseline;
	padding-top: 2.76cqw;
	border-bottom: max(1.5px, 0.34cqw) solid var(--vc-black);
}

.varnify-card-appt__line dt {
	padding-bottom: 1.26cqw;
	font-size: max(13px, 4.14cqw);
	font-style: italic;
	color: var(--vc-grey);
}

.varnify-card-appt__line dd {
	margin: 0;
	padding-bottom: 0.46cqw;
	font-family: var(--vc-face);
	font-size: max(17px, 6.21cqw);
	font-stretch: 104%;
	font-weight: 580;
	letter-spacing: -0.005em;
	line-height: 1.2;
	color: var(--vc-ink);
}

/* The time itself, set as display type in the card's face: the one thing
   on the card the visitor is asked to take. */
.varnify-card-appt__time {
	font-size: 1.62em;
	font-stretch: 112%;
	font-weight: 640;
	letter-spacing: -0.02em;
	line-height: 1;
	font-variant-numeric: lining-nums tabular-nums;
	text-shadow: var(--vc-press);
}

/* The words the pen writes in on the front card, apart from the pencil
   line after them. */
.varnify-card-appt__ink {
	display: inline-block;
}

/* The visitor's own time after the practice's: pencil, not ink. */
.varnify-card-appt__yours {
	display: inline-block;
	font-family: var(--vc-text);
	font-size: max(14px, 0.66em);
	font-stretch: 100%;
	font-weight: 400;
	letter-spacing: 0;
	color: var(--vc-grey);
	white-space: nowrap;
}

.varnify-card-appt__line dd.is-plain {
	font-size: max(16px, 5.06cqw);
	font-weight: 460;
	color: var(--vc-black);
}

.varnify-card-appt__line dd.is-blank {
	font-family: var(--vc-text);
	font-size: max(16px, 5.52cqw);
	font-style: italic;
	font-weight: 400;
	color: var(--vc-blank);
}

.varnify-card-appt__actions {
	display: flex;
	align-items: stretch;
	margin: 5.75cqw 0 0;
	background: var(--vc-black);
}

.varnify-card-appt__actions a {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: max(48px, 13.79cqw);
	padding: 0 max(16px, 5.06cqw);
	color: var(--vc-card);
	font-family: var(--vc-face);
	font-size: max(15px, 4.6cqw);
	font-stretch: 108%;
	font-weight: 620;
	text-decoration: none;
}

.varnify-card-appt__book {
	flex: 1;
	justify-content: space-between;
}

.varnify-card-appt__other {
	font-weight: 500 !important;
	border-left: 1px solid color-mix(in oklab, var(--vc-card) 30%, var(--vc-black));
}

.varnify-card-appt__actions a:hover span:first-child,
.varnify-card-appt__other:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* A narrow appointment card (dealt small on a tablet): the buttons keep
   their words on one line. */
@container (max-width: 400px) {
	.varnify-card-appt__actions a {
		gap: 10px;
		padding-inline: 12px;
		white-space: nowrap;
	}
}

/* Narrower still, only the button that books the time written on it;
   other times are a tap away on the booking page. */
@container (max-width: 330px) {
	.varnify-card-appt--full .varnify-card-appt__other {
		display: none;
	}
}

.varnify-card-appt__actions a:focus-visible {
	outline-color: var(--vc-card);
	outline-offset: -5px;
}

/* The time is written in: a pen's slanted nib runs across the line and the
   words appear behind it at full strength, never faded, so they pass
   contrast at every frame. It runs when a time is picked (the booking
   page, and the front card when the visitor's own time is added), and
   once on the front card as it settles, the day first, then the time.
   Clipping only: nothing moves or changes size. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.is-inked {
		animation: varnify-card-write 0.7s cubic-bezier(0.45, 0.15, 0.35, 1) backwards;
	}

	/* On any card, the pencil line in a line being written appears whole
	   once the ink has passed, never part-written. */
	.is-inked .varnify-card-appt__yours {
		animation: varnify-card-pencil 0.1s steps(1, end) 0.7s backwards;
	}

	.varnify-card-hero__appt :is([data-varnify-card-on], [data-varnify-card-at]) {
		animation: varnify-card-write-first 0.7s cubic-bezier(0.45, 0.15, 0.35, 1) 0.85s backwards;
	}

	.varnify-card-hero__appt :is([data-varnify-card-on], [data-varnify-card-at]).is-inked {
		animation-name: varnify-card-write;
	}

	.varnify-card-hero__appt [data-varnify-card-at] {
		animation-duration: 0.8s;
		animation-delay: 1.25s;
	}

	@keyframes varnify-card-pencil {
		from {
			clip-path: inset(0 100% 0 0);
		}
		to {
			clip-path: none;
		}
	}

	@keyframes varnify-card-write {
		from {
			clip-path: polygon(-1em -30%, 0 -30%, -0.45em 130%, -1em 130%);
		}
		to {
			clip-path: polygon(-1em -30%, calc(100% + 0.6em) -30%, calc(100% + 0.15em) 130%, -1em 130%);
		}
	}

	/* The same stroke under another name, so the script writing a time
	   in over the first one starts the pen again. */
	@keyframes varnify-card-write-first {
		from {
			clip-path: polygon(-1em -30%, 0 -30%, -0.45em 130%, -1em 130%);
		}
		to {
			clip-path: polygon(-1em -30%, calc(100% + 0.6em) -30%, calc(100% + 0.15em) 130%, -1em 130%);
		}
	}
}


/* From the front page to the booking page, the appointment card carries
   over: "Book this time" opens the same card, larger, with the picker
   beside it (a cross-document view transition; browsers without it simply
   load the page). Only the hero's card on the front page and the booking
   page's own card are named, one each. Nothing under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	.varnify-card-appt.varnify-card-hero__appt,
	body:not(:has(.varnify-card-hero__appt)) .varnify-card-bk__summary {
		view-transition-name: varnify-card-appt;
	}

	::view-transition-group(varnify-card-appt) {
		animation-duration: 0.5s;
		animation-timing-function: cubic-bezier(0.22, 0.75, 0.3, 1);
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.2s;
	}
}


/* ---------------------------------------------------------------------------
   Buttons and links
   --------------------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	font-family: var(--vc-face);
	font-stretch: 108%;
	min-height: 48px;
	box-sizing: border-box;
	text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-button__link {
		transition: box-shadow 0.15s ease;
	}
}

.wp-block-button__link:hover {
	box-shadow: inset 0 -3px 0 var(--vc-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--vc-black);
	border: 2px solid var(--vc-black);
}

.wp-block-button__link:focus-visible {
	outline: 2px solid var(--vc-black);
	outline-offset: 3px;
}


/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */

.varnify-card-header {
	padding-top: 22px;
	padding-bottom: 22px;
	font-family: var(--vc-face);
}

.varnify-card-header__bar {
	gap: 32px;
	align-items: center;
}

.varnify-card-header .wp-block-site-title {
	margin: 0;
	font-family: var(--vc-face);
	font-size: clamp(12px, 1vw + 4px, 15px);
	font-stretch: 150%;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
}

.varnify-card-header .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}

.varnify-card-nav {
	flex-shrink: 0;
	margin-left: auto;
	font-family: var(--vc-face);
	font-size: 15px;
	font-weight: 500;
}

.varnify-card-nav .wp-block-navigation__container {
	gap: clamp(16px, 2vw, 30px);
}

.varnify-card-nav .wp-block-navigation-item__content {
	padding-block: 10px;
	text-decoration: none;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

.varnify-card-nav .wp-block-navigation-item__content:hover,
.varnify-card-nav .current-menu-item > .wp-block-navigation-item__content,
.varnify-card-nav [aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--vc-ink);
}

.varnify-card-header__book .wp-block-button__link {
	white-space: nowrap;
	min-height: 44px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 650;
}

.varnify-card-nav .wp-block-navigation__responsive-container-open,
.varnify-card-nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	gap: 8px;
	min-width: 44px;
	min-height: 44px;
	font-family: var(--vc-face);
	font-size: 15px;
	font-weight: 600;
}

.varnify-card-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 18px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

/* The phone menu: a sheet of the page's stone, the name at its head in the
   letterhead's capitals, the sections as a file of index cards, each laid
   over the foot of the one before, and "Book a call" at the foot. It is
   WordPress's own dialog, so the focus trap, Escape and Close are its. */
.varnify-card-menu__name,
.varnify-card-menu__foot {
	display: none;
}

nav.varnify-card-nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: stretch;
	--navigation-layout-align: stretch;
	padding: 0 var(--vc-gutter);
	background: var(--vc-page) !important;
	color: var(--vc-black);
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-close,
nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	min-height: 100%;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-dialog {
	display: flex;
	flex-direction: column;
	max-width: 560px;
	margin: 0 auto;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: 8px;
	right: 0;
	display: flex;
	gap: 8px;
	padding: 0 4px 0 12px;
	color: var(--vc-black);
	font-size: 15px;
	font-weight: 650;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-container-close::after {
	content: "";
	width: 16px;
	height: 16px;
	background:
		linear-gradient(45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
		linear-gradient(-45deg, transparent calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 0 0 24px;
}

nav.varnify-card-nav .is-menu-open .varnify-card-menu__name {
	display: flex;
	align-items: center;
	min-height: 60px;
	margin: 0 0 20px;
	padding-right: 96px;
	font-family: var(--vc-face);
	font-size: 13px;
	font-stretch: 150%;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	box-shadow: 0 1px 0 rgb(60 50 30 / 0.12);
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch !important;
	gap: 0 !important;
}

/* Each section is a divider in a card file seen from above: its name
   written on the divider's face, a short ink tab cut into its top edge,
   the tabs staggered across the file the way dividers are cut. Each
   divider is only as tall as its name, so no blank card shows under it.
   The whole divider is the link. */
nav.varnify-card-nav .is-menu-open .wp-block-navigation-item {
	--vc-x: 0;
	position: relative;
	isolation: isolate;
	display: block !important;
	margin-top: 12px;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:first-child {
	margin-top: 6px;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:nth-child(4n + 2) {
	--vc-x: 0.34;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:nth-child(4n + 3) {
	--vc-x: 0.68;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:nth-child(4n + 4) {
	--vc-x: 1;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--vc-card);
	box-shadow: var(--vc-flat);
}

/* The divider's tab: ink, no words on it. */
nav.varnify-card-nav .is-menu-open .wp-block-navigation-item::after {
	content: "";
	position: absolute;
	top: -7px;
	left: calc(16px + (100% - 32px - 56px) * var(--vc-x));
	width: 56px;
	height: 7px;
	background: var(--vc-ink);
	clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 100%, 0 100%);
	pointer-events: none;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 20px !important;
	color: var(--vc-black);
	text-decoration: none;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item__label {
	display: inline-block;
	font-family: var(--vc-face);
	font-size: 18px;
	font-stretch: 108%;
	font-weight: 650;
	line-height: 1.2;
	text-wrap: balance;
	transition: transform 0.15s ease-out;
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
	transform: translateX(3px);
}

nav.varnify-card-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content,
nav.varnify-card-nav .is-menu-open [aria-current="page"] {
	text-decoration: none;
}

/* The section you are in: its divider pulled up in black. */
nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:is(.current-menu-item, :has(> [aria-current="page"]))::before {
	background: var(--vc-black);
}

nav.varnify-card-nav .is-menu-open .wp-block-navigation-item:is(.current-menu-item, :has(> [aria-current="page"])) > .wp-block-navigation-item__content {
	color: var(--vc-card);
}

@media (prefers-reduced-motion: reduce) {
	nav.varnify-card-nav .is-menu-open .wp-block-navigation-item__label {
		transition: none;
	}
}

nav.varnify-card-nav .is-menu-open .varnify-card-menu__foot {
	display: block;
	margin: auto 0 0;
	padding-top: 24px;
}

nav.varnify-card-nav .is-menu-open .varnify-card-menu__book {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	font-family: var(--vc-face);
	font-size: 17px;
	font-weight: 650;
	text-decoration: none;
}

/* The header stays in reach: the header part is sticky (never fixed, so
   nothing shifts as the page loads), in its own strip of stone. Once the
   page scrolls, the script adds .is-stuck: the strip tightens and takes a
   soft edge. The part's height lost by tightening is given back to it as
   margin, so nothing below moves. Without the script it is still sticky,
   just never compact. Owners can turn it off (Appearance, Ink and type),
   which sets .varnify-card-header-scrolls on the body. */
.wp-site-blocks > header.wp-block-template-part:has(> .varnify-card-header:not(.varnify-card-header--minimal)) {
	position: sticky;
	top: 0;
	z-index: 50;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.varnify-card-header-scrolls .wp-site-blocks > header.wp-block-template-part:has(> .varnify-card-header:not(.varnify-card-header--minimal)) {
	position: static;
}

.varnify-card-header {
	background: var(--vc-page);
}

.varnify-card-header.is-stuck {
	padding-top: 8px;
	padding-bottom: 8px;
	box-shadow: 0 1px 0 rgb(60 50 30 / 0.12), 0 8px 18px -12px rgb(20 16 10 / 0.3);
}

.varnify-card-header.is-stuck .wp-block-site-title {
	font-size: clamp(12px, 0.6vw + 5px, 13px);
}

@media (prefers-reduced-motion: no-preference) {
	.varnify-card-header {
		transition: box-shadow 0.18s ease;
	}
}

html {
	scroll-padding-top: 72px;
}

html:has(> body.admin-bar) {
	scroll-padding-top: calc(72px + var(--wp-admin--admin-bar--height, 32px));
}

html:has(> body.varnify-card-header-scrolls) {
	scroll-padding-top: 0;
}

/* Under 600px WordPress's own bar scrolls away with the page. */
@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* Seven or eight links need room: below 1280px they fold into the menu. */
@media (min-width: 600px) and (max-width: 1279px) {
	.varnify-card-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.varnify-card-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.varnify-card-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
	}
}

.wp-site-blocks > header + main,
.wp-site-blocks > main + footer {
	margin-block-start: 0;
}

@media (max-width: 781px) {
	.varnify-card-header .varnify-card-header__book {
		display: none;
	}

	.varnify-card-header {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.varnify-card-header.is-stuck .varnify-card-header__book {
		display: flex;
	}

	.varnify-card-header.is-stuck .varnify-card-header__book .wp-block-button__link {
		min-height: 44px;
		padding: 10px 14px;
		font-size: 14px;
	}

	/* Stuck, the menu stays beside "Book a call", as its three lines
	   alone (the word is still its name), and the gaps close up so the
	   name, the button and the menu share the 60px bar. */
	.varnify-card-header.is-stuck .varnify-card-header__bar {
		gap: 10px;
	}

	.varnify-card-header.is-stuck nav.varnify-card-nav {
		order: 2;
		margin-left: 0;
	}

	.varnify-card-header.is-stuck .varnify-card-nav .wp-block-navigation__responsive-container-open {
		justify-content: center;
		gap: 0;
		font-size: 0;
	}

	.varnify-card-header.is-stuck .varnify-card-header__book {
		order: 1;
		margin-left: auto;
	}
}

@media (min-width: 1280px) and (max-width: 1439px) {
	.varnify-card-nav {
		font-size: 14px;
	}

	.varnify-card-nav .wp-block-navigation__container {
		gap: 16px;
	}
}

/* A long firm name wraps rather than pushing the menu off the screen. */
@media (max-width: 599px) {
	.varnify-card-header .wp-block-site-title {
		min-width: 0;
		white-space: normal;
		letter-spacing: 0.12em;
		line-height: 1.5;
	}
}

/* Stuck on a phone the name keeps to one line: smaller, narrower and less
   tracked; the script takes words off its end if it still does not fit. */
.varnify-card-name__short {
	display: none;
}

.wp-block-site-title.is-short .varnify-card-name__full {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wp-block-site-title.is-short .varnify-card-name__short {
	display: inline;
}

@media (max-width: 781px) {
	.varnify-card-header.is-stuck .wp-block-site-title {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		font-size: 12px;
		font-stretch: 100%;
		letter-spacing: 0.06em;
		line-height: 1.2;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.varnify-card-header.is-stuck .wp-block-site-title a {
		display: block;
		overflow: hidden;
		line-height: 44px;
		text-overflow: ellipsis;
	}
}

.varnify-card-header--minimal .varnify-card-header__back,
.varnify-card-header--minimal .varnify-card-header__zone {
	margin: 0;
	font-family: var(--vc-face);
	font-size: 15px;
	font-weight: 600;
}

.varnify-card-header--minimal a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: inherit;
	text-decoration: none;
}

.varnify-card-header--minimal a:hover {
	text-decoration: underline;
}


/* ---------------------------------------------------------------------------
   The hero: fanned on slate

   The headline runs across the stone. Under it a slab of dark slate is set
   into the page, from the fifth column to the right edge of the screen,
   and the calling card and its back, the appointment card, are dealt across
   it, the card crossing the slab's edge. The words stay black on stone;
   the slate is only the surface the stationery lies on, and the ink stays on
   the cards. On a phone the slab is a corner under the cards, and the
   appointment card sits at the foot of the first screen.

   The slate is drawn here: a matte cleft surface (SVG noise filters, no
   image file) with fine flecks and faint mineral variation, and the recess
   it is set in.
   --------------------------------------------------------------------------- */

.varnify-card-hero {
	--vc-slate: var(--wp--preset--color--slate, #31322e);
	/* The card's reference width; every position on the slab is measured
	   in it, so the fan keeps its shape at any size. */
	--vc-w: calc(100vw - 2 * var(--vc-gutter) - 14px);
	padding-top: 8px;
	padding-bottom: 0;
}

.varnify-card-hero__deal {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - 64px - 8px);
}

.varnify-card-hero__deal > * {
	margin-block: 0;
}

.varnify-card-hero__headline {
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	font-weight: 420;
	line-height: 1.06;
	letter-spacing: -0.024em;
}

/* The phrase the headline turns on is set in the card's own face, wide
   and heavy, and pressed into the stone like the card's name: the
   impression's top wall in shade, its lower lip catching the light. It
   follows the owner's heading font; a font without a width axis is simply
   set at its own width. */
.varnify-card-mark,
.varnify-card-hero__headline mark {
	background: none;
	color: inherit;
	font-family: var(--vc-face);
	font-size: 0.8em;
	font-stretch: 116%;
	font-weight: 640;
	letter-spacing: -0.012em;
	line-height: 1;
	text-shadow:
		0 0.035em 0 rgb(255 255 255 / 0.95),
		0 -0.022em 0 rgb(40 34 22 / 0.3);
}

.varnify-card-hero__text {
	margin-top: 18px !important;
}

.varnify-card-hero__intro {
	max-width: 36ch;
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: var(--vc-grey);
}

.varnify-card-hero__fee,
.varnify-card-hero__second {
	max-width: 44ch;
	margin: 14px 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--vc-grey);
}

.varnify-card-hero__second a {
	color: var(--vc-black);
	text-underline-offset: 3px;
}

/* The slab. The group is the layout box; the stone itself is drawn on
   ::before so its edge can sit apart from the cards that cross it. */
.varnify-card-hero__slate {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	margin-top: auto !important;
	padding: 28px 0 22px;
}

.varnify-card-hero__slate::before,
.varnify-card-hero__slate::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 27%;
	right: calc(-1 * var(--vc-gutter));
	pointer-events: none;
}

/* The stone's two textures are drawn as border images that fill the box
   (no border, slice 0, repeated at their own size), not as background
   images: they look the same, but a browser does not count them as the
   page's largest image, so the first screen counts as painted when its
   words are. */
.varnify-card-hero__slate::before {
	background-color: var(--vc-slate);
	background-image:
		/* The far corner a little deeper, and the window's light just
		   catching the top of the slab. */
		radial-gradient(90% 80% at 12% 92%, rgb(0 0 0 / 0.14), transparent 65%),
		linear-gradient(168deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0) 42%);
	/* Faint mineral variation, a shade greener or bluer in places, and a
	   few dark pits. Its tile (977px) and the tooth's (331px) are primes,
	   so the two never line up into a visible repeat. */
	border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='977' height='977'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0032' numOctaves='3' seed='17' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .56 0 0 0 0 .52 1.6 0 0 0 -.7'/%3E%3C/filter%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='29' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .02 0 0 0 0 .02 0 0 0 0 .04 -1.6 0 0 0 .78'/%3E%3C/filter%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='1' seed='41' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .02 0 0 0 0 .02 0 0 0 0 .02 7 0 0 0 -5'/%3E%3C/filter%3E%3Crect width='977' height='977' filter='url(%23m)' opacity='0.11'/%3E%3Crect width='977' height='977' filter='url(%23n)' opacity='0.14'/%3E%3Crect width='977' height='977' filter='url(%23g)' opacity='0.4'/%3E%3C/svg%3E") 0 fill / 0 / 0 repeat;
}

.varnify-card-hero__slate::after {
	/* Cleft slate, matte: a fine even tooth, light and dark, and sparse
	   pale flecks of mica, all without direction, so nothing reads as a
	   wipe or a brushed streak. */
	border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='331' height='331'%3E%3Cfilter id='t' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .92 0 0 0 0 .88 .9 0 0 0 -.38'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 0 0 0 .62'/%3E%3C/filter%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.38' numOctaves='2' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .84 0 0 0 0 .86 0 0 0 0 .82 7 0 0 0 -5.1'/%3E%3C/filter%3E%3Crect width='331' height='331' filter='url(%23t)' opacity='0.22'/%3E%3Crect width='331' height='331' filter='url(%23d)' opacity='0.3'/%3E%3Crect width='331' height='331' filter='url(%23f)' opacity='0.4'/%3E%3C/svg%3E") 0 fill / 0 / 0 repeat;
	/* A tile of slate laid on the stone, not set into it: its top and
	   left arrises catch the light, its sawn edge shows below as a darker
	   face, and it casts a short shadow on the stone. Every board in the
	   theme shows its edge the same way. */
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.16),
		inset 1px 0 0 rgb(255 255 255 / 0.1),
		0 1px 0 rgb(255 255 255 / 0.14),
		0 9px 0 color-mix(in srgb, var(--vc-slate) 62%, #000),
		0 10px 0 rgb(0 0 0 / 0.3),
		0 18px 22px -8px rgb(20 16 10 / 0.45);
}

/* The cards on the slab: heavier board, and a darker shadow under each,
   cast onto the stone. */
.varnify-card-hero__slate .varnify-card-cc,
.varnify-card-hero__slate .varnify-card-appt {
	box-shadow:
		var(--vc-edge),
		0 calc(var(--vc-e) * 3) calc(var(--vc-e) * 5) calc(var(--vc-e) * -0.5) rgb(0 0 0 / 0.5);
}

.varnify-card-hero__card {
	--vc-e: 6px;
	--vc-r: -1.6deg;
	width: calc(100% - 14px);
	rotate: var(--vc-r);
}

.varnify-card-hero__appt {
	--vc-e: 6px;
	--vc-r: 0.9deg;
	position: relative;
	z-index: 1;
	margin-top: 42px !important;
	rotate: var(--vc-r);
}

/* The therapist's softer card and the practice's wider one are laid at
   the same height as the standard card, so the fan keeps its shape. */
.varnify-card-hero__card.is-soft {
	width: min(calc(100% - 14px), 88%);
}

/* Dealt once, as the page opens: each card lands a little lifted and
   askew and settles to its place. No fade, so the words can be read at
   every frame, and transforms only, so nothing else moves. */
@media (prefers-reduced-motion: no-preference) {
	.varnify-card-hero__slate .varnify-card-cc {
		animation: varnify-card-settle 0.8s cubic-bezier(0.22, 0.75, 0.3, 1) 0.05s both;
	}

	.varnify-card-hero__slate .varnify-card-appt {
		animation: varnify-card-settle 0.8s cubic-bezier(0.22, 0.75, 0.3, 1) 0.3s both;
	}

	@keyframes varnify-card-settle {
		from {
			translate: -18px -26px;
			rotate: calc(var(--vc-r) - 3deg);
		}
		to {
			translate: 0 0;
			rotate: var(--vc-r);
		}
	}
}

/* On a phone the docked appointment card says only when, and books it. */
@media (max-width: 599px) {
	/* Plain stone below the slab for the line under the appointment card.
	   The card's own line under the time (the practice's zone, or the
	   visitor's own time) is printed by the server, so the card is the
	   same height before and after the script writes in. */
	.varnify-card-hero__deal {
		--vc-reserve: 22px;
	}

	.varnify-card-hero__slate {
		padding-bottom: var(--vc-reserve);
	}

	/* The partners' card is the deepest; a little narrower, so the line
	   under the appointment card fits with the visitor's own time on it. */
	.varnify-card-hero__card.is-engraved {
		width: calc(100% - 34px);
	}

	/* The stone stops a little above the appointment card's foot, so the
	   card hangs off it onto the page, as on a desktop, and the room kept
	   below is plain stone for the line under it. */
	.varnify-card-hero__slate::before,
	.varnify-card-hero__slate::after {
		bottom: calc(var(--vc-reserve) + 14px);
	}

	.varnify-card-hero__headline {
		font-size: clamp(28px, 8.2vw, 34px);
	}

	/* A fee line under the introduction (the therapist's, the practice's)
	   follows the cards on a phone, so a headline that runs to three
	   lines still leaves the appointment card and its button in view. */
	.varnify-card-hero__text {
		display: contents;
	}

	.varnify-card-hero__text > .varnify-card-hero__intro {
		margin-top: 18px;
	}

	.varnify-card-hero__text > .varnify-card-hero__fee {
		order: 3;
		margin-top: 28px;
	}

	.varnify-card-hero__intro {
		font-size: 16px;
		line-height: 1.42;
	}

	.varnify-card-hero__appt .varnify-card-appt__with,
	.varnify-card-hero__appt .varnify-card-appt__line:nth-child(3) {
		display: none;
	}

	/* "Write to me first" stays on the first screen, under the slab: only
	   the intro's link is shown (the words around it come back below the
	   cards on a desktop), on its own 44px line. The space above the slab
	   gives way to it, so the cards keep their size and place. */
	.varnify-card-hero__second {
		display: flex;
		order: 2;
		align-items: flex-start;
		min-height: 30px;
		max-width: none;
		/* 16px of stone between the card's foot and the words. */
		margin: calc(-1 * var(--vc-reserve, 22px) + 15px) 0 0 !important;
		font-size: 0;
		line-height: 0;
	}

	/* The 44px target reaches up over the appointment card's plain foot
	   (below its button, never over it); the words sit at its lower edge. */
	.varnify-card-hero__second a {
		position: relative;
		z-index: 2;
		display: inline-flex;
		align-items: flex-end;
		box-sizing: border-box;
		min-height: 44px;
		margin-top: -14px;
		padding-bottom: 6px;
		font-size: 15px;
		line-height: 1.3;
		text-decoration-thickness: 1px;
	}

	/* "Other times" moves up into the card's head, where "with ..." was,
	   as a pencilled link: the button keeps the whole width for the time
	   on the card. Its target is the head's full height and more. */
	.varnify-card-hero__appt .varnify-card-appt__actions {
		position: static;
	}

	.varnify-card-hero__appt .varnify-card-appt__actions .varnify-card-appt__other {
		display: flex;
		position: absolute;
		top: calc(5.5% - 10px);
		right: 6.5%;
		min-height: 44px;
		padding: 0 2px;
		border: 0;
		background: none;
		color: var(--vc-black);
		font-family: var(--vc-text);
		font-size: 15px;
		font-stretch: 100%;
		font-weight: 400 !important;
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 3px;
		white-space: nowrap;
	}

	.varnify-card-hero__appt .varnify-card-appt__actions .varnify-card-appt__other:focus-visible {
		outline-color: var(--vc-black);
		outline-offset: 0;
	}
}

.varnify-card-appt__cta {
	display: none;
}

@media (max-width: 599px) {
	.varnify-card-hero__appt .varnify-card-appt__cta {
		display: inline;
	}

	.varnify-card-hero__appt .varnify-card-appt__book > span:first-child {
		display: none;
	}

	/* The call to action on one line on a 320 to 414px screen where it
	   can be (a long one, "Book a 45-minute first meeting", is set a
	   little narrower), and wrapped, never cut, where it cannot. */
	.varnify-card-hero__appt .varnify-card-appt__actions a {
		min-width: 0;
		gap: 10px;
		padding-inline: 14px;
		font-size: clamp(13.5px, 3.9vw, 15px);
		font-stretch: 96%;
		text-wrap: balance;
	}
}

/* A phone up to 899px tall (390 x 844, 414 x 896 and every shorter one):
   the introduction follows the slab, so the headline, both cards, the
   button and "Write to me first" all stand on the first screen with room
   under them, not on its last pixel. */
@media (max-width: 599px) and (max-height: 899px) {
	.varnify-card-hero__intro,
	.varnify-card-hero__fee {
		order: 3;
		margin-bottom: 8px;
	}

	.varnify-card-hero__text > .varnify-card-hero__intro {
		margin-top: 40px;
	}

	.varnify-card-hero__text > .varnify-card-hero__fee {
		margin-top: 6px;
	}

	.varnify-card-hero__slate {
		margin-top: 22px !important;
	}
}

/* A short phone screen (under 830px tall, or a taller one with the
   browser's bars showing): the introduction moves below the slab, so the
   headline, the card and the appointment card still fit, and the card is
   laid a little smaller. */
@media (max-width: 599px) and (max-height: 829px) {
	.varnify-card-hero__deal {
		min-height: calc(100svh - 64px - 8px);
	}

	.varnify-card-hero__intro,
	.varnify-card-hero__fee {
		order: 3;
		margin-bottom: 8px;
	}

	.varnify-card-hero__text > .varnify-card-hero__intro {
		margin-top: 40px;
	}

	.varnify-card-hero__text > .varnify-card-hero__fee {
		margin-top: 6px;
	}

	.varnify-card-hero__headline {
		font-size: clamp(26px, 7.2vw, 30px);
	}

	.varnify-card-hero__slate {
		margin-top: 14px !important;
	}

	/* Both cards a little smaller, so "Write to me first" keeps its line
	   under them. */
	.varnify-card-hero__card {
		width: min(calc(100% - 14px), calc((100svh - 64px) * 0.44));
	}

	.varnify-card-hero__card.is-soft {
		width: min(calc(100% - 14px), calc((100svh - 64px) * 0.4));
	}

	.varnify-card-hero__appt {
		width: min(100%, calc((100svh - 64px) * 0.5));
		margin-top: 30px !important;
	}
}

/* The shortest phones (375 x 667): the slate's top edge closes up a
   little, so the deepest pair of cards (the partners') still leaves 16px
   of stone under the appointment card and the line under it in view. */
@media (max-width: 599px) and (max-height: 699px) {
	.varnify-card-hero__slate {
		padding-top: 14px;
	}
}

/* From a tablet up the two cards are dealt across the slab on a diagonal,
   the card upper left, crossing the slab's edge, and its back lower right,
   its edge just over the card's margin. Both are laid in the same cell and
   placed by margins measured in the card's width (--vc-w), the card's own
   width following its shape (--vc-cw). */
@media (min-width: 600px) {
	.varnify-card-hero {
		--vc-w: clamp(300px, 46vw, 400px);
	}

	.varnify-card-hero__deal {
		min-height: 0;
	}

	.varnify-card-hero__text {
		margin-top: 22px !important;
	}

	.varnify-card-hero__slate {
		display: grid;
		/* One cell as wide as the card, so the cards' padding (a percentage
		   of their containing block) is measured in the card, not the slab. */
		grid-template: "deal" auto / var(--vc-w);
		align-items: start;
		justify-items: start;
		margin-top: 40px !important;
		padding: calc(var(--vc-w) * 0.07) 0 clamp(56px, 9vw, 150px);
	}

	.varnify-card-hero__slate::before,
	.varnify-card-hero__slate::after {
		left: calc(var(--vc-w) * 0.1);
	}

	.varnify-card-hero__slate > * {
		grid-area: deal;
	}

	/* The card crosses the slab's left edge onto the stone. */
	.varnify-card-hero__card {
		--vc-cw: var(--vc-w);
		width: var(--vc-cw);
		margin-left: calc(var(--vc-w) * -0.08) !important;
	}

	.varnify-card-hero__card.is-soft {
		--vc-cw: calc(var(--vc-w) * 0.87);
		width: var(--vc-cw);
	}

	.varnify-card-hero__card.is-engraved {
		--vc-cw: calc(var(--vc-w) * 1.1);
		width: var(--vc-cw);
	}

	.varnify-card-hero__slate:has(.is-engraved) {
		--vc-w: clamp(280px, 40vw, 360px);
	}

	/* Its back lies just over the card's right margin, never its words. */
	.varnify-card-hero__appt {
		width: var(--vc-w);
		margin-top: calc(var(--vc-w) * 0.36) !important;
		margin-left: calc(var(--vc-w) * 0.88) !important;
	}

	.varnify-card-hero__slate:has(.is-soft) .varnify-card-hero__appt {
		margin-left: calc(var(--vc-w) * 0.76) !important;
	}

	/* The partners' card is the shortest, so its back can lie as high as
	   the others' and still clear its words. */
	.varnify-card-hero__slate:has(.is-engraved) .varnify-card-hero__appt {
		margin-left: calc(var(--vc-w) * 1.0) !important;
	}

	.varnify-card-hero__appt > .varnify-card-tab {
		font-size: 12px;
		padding: 8px 16px 7px;
	}
}

/* On a desktop the headline takes the first eight columns and the
   introduction the last four, beside it, so the stone to the right of the
   headline carries words. The slab runs under both, from the second column
   to the screen's right edge, and fills whatever height the first screen
   has left: it is a size container, and the cards are laid as large as it
   allows (the card at most 620px wide), so a long headline, a short screen
   or the owner's own wide font shrink the cards rather than push "Book
   this time" below the fold. The card crosses the slab's left edge onto
   the stone; its back lies beside it, a little lower, just over its right
   margin. */
@media (min-width: 960px) {
	.varnify-card-hero {
		/* The bleed: from the content's right edge to the screen's. */
		--vc-bleed: max(var(--wp--style--root--padding-right, var(--vc-gutter)), calc((100vw - 1440px) / 2));
		--vc-hero-top: clamp(20px, 2.6vw, 48px);
		padding-top: var(--vc-hero-top);
	}

	.varnify-card-hero__deal {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto minmax(330px, 1fr);
		column-gap: 24px;
		/* The first screen under the header (88px unscrolled). */
		min-height: calc(100svh - 88px - var(--vc-hero-top));
	}

	.admin-bar .varnify-card-hero__deal {
		min-height: calc(100svh - 88px - var(--vc-hero-top) - var(--wp-admin--admin-bar--height, 32px));
	}

	/* The headline's size follows the screen's height as well as its
	   width, so three or four lines of it still leave the slab room. */
	.varnify-card-hero__headline {
		grid-column: 1 / 9;
		grid-row: 1;
		font-size: max(40px, min(var(--wp--preset--font-size--display), 7svh));
		text-wrap: pretty;
	}

	/* Beside the headline, its first line level with the headline's
	   x-height. */
	.varnify-card-hero__text {
		grid-column: 9 / -1;
		grid-row: 1;
		align-self: start;
		margin-top: calc(max(40px, min(var(--wp--preset--font-size--display), 7svh)) * 0.24) !important;
	}

	.varnify-card-hero__intro {
		max-width: none;
		font-size: clamp(17px, 0.5vw + 11px, 20px);
	}

	.varnify-card-hero__fee,
	.varnify-card-hero__second {
		max-width: none;
	}

	.varnify-card-hero__slate {
		--vc-pad: clamp(26px, 3.4svh, 40px);
		grid-column: 2 / -1;
		grid-row: 2;
		align-self: start;
		container-type: size;
		/* As tall as the first screen allows, but no taller than the
		   largest cards need, so the slab's foot stays under them. */
		height: min(100%, calc(620px * 0.86 + 2 * var(--vc-pad) + 30px));
		margin-top: clamp(22px, 3.4svh, 44px) !important;
		margin-right: calc(-1 * var(--vc-bleed)) !important;
		padding: 0;
		grid-template: "deal" 1fr / 1fr;
	}

	/* The stone ends a little above the cards' foot: the card's lower
	   edge rests on the slab's edge and its back hangs over onto the
	   page, so the slab reads as a tile the cards were dealt across, not
	   a panel they sit inside. The layout box (and the cards' size) is
	   unchanged. */
	.varnify-card-hero__slate::before,
	.varnify-card-hero__slate::after {
		--vc-w: min(620px, calc(54cqw - 30px), calc((100cqh - 2 * var(--vc-pad) - 30px) / 0.86));
		left: 0;
		right: 0;
		bottom: calc(100% - var(--vc-pad) - var(--vc-w) * 0.6);
	}

	/* From 1360px wide the headline takes nine columns and the
	   introduction three, so most headlines set in two lines; an
	   introduction with a fee line under it keeps four, so it is not
	   the tallest thing in the row. */
	@media (min-width: 1360px) {
		.varnify-card-hero__headline {
			grid-column: 1 / 10;
		}

		.varnify-card-hero__text {
			grid-column: 10 / -1;
		}

		.varnify-card-hero__deal:has(.varnify-card-hero__fee) > .varnify-card-hero__headline {
			grid-column: 1 / 9;
		}

		.varnify-card-hero__deal:has(.varnify-card-hero__fee) > .varnify-card-hero__text {
			grid-column: 9 / -1;
		}
	}

	/* On a short screen the introduction is set a size smaller, so the
	   row it shares with the headline leaves the slab more height. */
	@media (max-height: 820px) {
		.varnify-card-hero__intro {
			font-size: 16.5px;
			line-height: 1.42;
		}

		.varnify-card-hero__fee,
		.varnify-card-hero__second {
			margin-top: 10px;
			font-size: 14px;
		}
	}

	/* The card's width: as wide as the slab's height allows (the deal is
	   about 0.86 of the card's width tall), as the slab's width allows (the
	   pair spans about 1.78 card widths), and never over 620px. Set on each
	   card, so the container units are measured on the slab. */
	.varnify-card-hero__slate > * {
		--vc-w: min(620px, calc(54cqw - 30px), calc((100cqh - 2 * var(--vc-pad) - 30px) / 0.86));
		align-self: start;
	}

	.varnify-card-hero__card,
	.varnify-card-hero__appt {
		--vc-e: 9px;
	}

	.varnify-card-hero__card {
		--vc-cw: var(--vc-w);
		width: var(--vc-cw);
		margin: var(--vc-pad) 0 0 calc(var(--vc-w) * -0.08) !important;
	}

	/* The therapist's squarer card is laid the same height as the
	   standard one; the partners' wider card a little wider again. */
	.varnify-card-hero__card.is-soft {
		--vc-cw: calc(var(--vc-w) * 0.87);
	}

	.varnify-card-hero__card.is-engraved {
		--vc-cw: calc(var(--vc-w) * 1.08);
	}

	.varnify-card-hero__appt {
		--vc-aw: calc(var(--vc-w) * 0.92);
		width: var(--vc-aw);
		margin: calc(var(--vc-pad) + var(--vc-w) * 0.1) 0 0 calc(var(--vc-w) * 0.9) !important;
	}

	.varnify-card-hero__slate:has(.is-soft) .varnify-card-hero__appt {
		margin-left: calc(var(--vc-w) * 0.8) !important;
	}

	.varnify-card-hero__slate:has(.is-engraved) .varnify-card-hero__appt {
		--vc-aw: calc(var(--vc-w) * 0.86);
		margin-left: calc(var(--vc-w) * 1.02) !important;
	}

	/* A card's padding is a percentage of its containing block, which here
	   is the whole slab, so it is given again in the card's own width. (In
	   the editor the card fills its block's wrapper, and the percentages
	   are right.) */
	.varnify-card-hero__slate > .varnify-card-cc {
		padding: calc(var(--vc-cw) * 0.065) calc(var(--vc-cw) * 0.065) calc(var(--vc-cw) * 0.055);
	}

	.varnify-card-hero__slate > .varnify-card-cc.is-soft {
		padding: calc(var(--vc-cw) * 0.075) calc(var(--vc-cw) * 0.075) calc(var(--vc-cw) * 0.065);
	}

	.varnify-card-hero__slate > .varnify-card-cc.is-engraved {
		padding: calc(var(--vc-cw) * 0.06) calc(var(--vc-cw) * 0.07) calc(var(--vc-cw) * 0.054);
	}

	.varnify-card-hero__slate > .varnify-card-appt {
		padding: calc(var(--vc-aw) * 0.055) calc(var(--vc-aw) * 0.065) calc(var(--vc-aw) * 0.06);
	}

	.varnify-card-hero__appt > .varnify-card-tab {
		font-size: 13px;
		padding: 9px 18px 8px;
	}
}

/* In the editor each card is drawn by the server inside the block's own
   wrapper, and both carry the hero's class: the wrapper is placed, tilted
   and dealt, and the card inside simply fills it. */
.varnify-card-hero__card .varnify-card-hero__card,
.varnify-card-hero__appt .varnify-card-hero__appt {
	width: 100% !important;
	margin: 0 !important;
	rotate: none;
	animation: none;
}

.varnify-card-cc-edit.varnify-card-hero__card,
.wp-block-varnify-card-appointment.varnify-card-hero__appt:not(.varnify-card-appt) {
	box-shadow: none !important;
}


/* A length ("30-minute") kept on one line (Varnify_Card_Design::keep_lengths). */
.varnify-card-nowrap {
	white-space: nowrap;
}


/* ---------------------------------------------------------------------------
   Sections: shared rhythm
   --------------------------------------------------------------------------- */

.varnify-card-front > .alignfull {
	margin-block: 0;
}

.varnify-card-proof,
.varnify-card-services,
.varnify-card-how,
.varnify-card-work,
.varnify-card-team,
.varnify-card-writing,
.varnify-card-where,
.varnify-card-book {
	padding-top: var(--vc-section);
}

/* On a desktop the slab's box runs on under the cards that hang off its
   edge, so the section after the hero needs less of its own space. */
@media (min-width: 960px) {
	.varnify-card-hero + .varnify-card-proof {
		padding-top: clamp(40px, 4.4vw, 64px);
	}
}

.varnify-card-book,
.varnify-card-where {
	padding-bottom: var(--vc-section);
}

/* The work sheet carries its own margin of paper, and the address slip
   is followed by the booking section's own space: the gaps either side
   are taken in so the rhythm down the page stays even. */
.varnify-card-work {
	padding-top: calc(var(--vc-section) * 0.75);
}

.varnify-card-work + .varnify-card-photoband {
	padding-top: calc(var(--vc-section) * 0.75);
}

.varnify-card-where:has(+ .varnify-card-book) {
	padding-bottom: 0;
}

:where(.varnify-card-services, .varnify-card-how, .varnify-card-work, .varnify-card-team, .varnify-card-writing, .varnify-card-where, .varnify-card-book) h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--heading);
}

/* Anything in a section grid without a place of its own (a block the owner
   added in the Site Editor) spans the grid. */
@media (min-width: 960px) {
	:where(.varnify-card-proof__grid, .varnify-card-services__grid, .varnify-card-team__grid, .varnify-card-writing__grid, .varnify-card-where__grid) > * {
		grid-column: 1 / -1;
	}

	.varnify-card-services__body:not(.varnify-card-feecard) {
		grid-column: 6 / 13;
		grid-row: 1 / span 3;
		padding-left: 40px;
	}

	.varnify-card-where__text:not(.varnify-card-slip) {
		grid-column: 8 / 13;
		grid-row: 1;
		align-self: center;
		padding-left: 40px;
	}
}

@media (min-width: 960px) {
	.varnify-card-grid,
	.varnify-card-proof__grid,
	.varnify-card-services__grid,
	.varnify-card-team__grid,
	.varnify-card-writing__grid,
	.varnify-card-where__grid {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 24px;
	}
}


/* ---------------------------------------------------------------------------
   Proof
   --------------------------------------------------------------------------- */

.varnify-card-proof__quote {
	margin: 0;
	padding: 0;
	border: 0;
}

.varnify-card-proof__quote p,
.varnify-card-proof__statement {
	margin: 0;
	font-family: var(--vc-text);
	font-size: var(--wp--preset--font-size--quote);
	font-weight: 400;
	line-height: 1.16;
	letter-spacing: -0.016em;
	text-wrap: balance;
}

.varnify-card-proof__quote cite {
	display: block;
	margin-top: 26px;
	font-family: var(--vc-face);
	font-size: 15px;
	font-style: normal;
	line-height: 1.5;
	color: var(--vc-grey);
}

.varnify-card-proof__quote cite strong {
	font-weight: 650;
	color: var(--vc-black);
}

.varnify-card-proof__check {
	margin: 22px 0 0;
	font-family: var(--vc-face);
	font-size: 16px;
	font-weight: 600;
}

.varnify-card-proof__check a,
.varnify-card-proof__facts a {
	color: inherit;
	text-underline-offset: 3px;
}

.varnify-card-proof__facts {
	margin-top: 40px;
	font-size: 17px;
	line-height: 1.5;
}

.varnify-card-proof__facts p {
	margin: 0 0 12px;
}

.varnify-card-proof__clients {
	font-size: 15px;
	color: var(--vc-grey);
}

.varnify-card-stars {
	letter-spacing: 0.08em;
	color: var(--vc-black);
}

/* Starter proof is an invented business's: a pencilled slip says so until
   the owner gives their own in Your details. */
.varnify-card-example {
	max-width: 46ch;
	margin: 0 0 18px;
	padding: 10px 14px;
	border: 1.5px dashed var(--vc-pressed);
	font-size: 14px;
	line-height: 1.45;
	color: var(--vc-grey);
}

.varnify-card-proof__quote .varnify-card-example {
	margin: 22px 0 0;
	font-size: 14px;
	letter-spacing: 0;
	text-wrap: pretty;
}

.varnify-card-example strong {
	margin-right: 4px;
	font-family: var(--vc-face);
	font-weight: 650;
	color: var(--vc-black);
}

.varnify-card-badge-slot {
	padding: 14px 16px;
	border: 1.5px dashed var(--vc-pressed);
	font-size: 14px;
	color: var(--vc-grey);
}

/* The print of where you work: the first thing below the hero, beside the
   proof. */
.varnify-card-proof__print {
	margin: 0 0 40px;
}

.varnify-card-proof__print img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: center 65%;
}

@media (min-width: 960px) {
	.varnify-card-proof__quote {
		grid-column: 2 / 9;
	}

	.varnify-card-proof__facts {
		grid-column: 9 / 13;
		align-self: end;
		margin-top: 0;
		padding-left: 8px;
	}

	.varnify-card-proof__grid:has(.varnify-card-proof__print) {
		row-gap: 40px;
	}

	.varnify-card-proof__print {
		grid-column: 1 / 6;
		grid-row: 1 / span 2;
		align-self: start;
		margin: 0;
	}

	.varnify-card-proof__print ~ .varnify-card-proof__quote {
		grid-column: 7 / 13;
		grid-row: 1;
		align-self: end;
	}

	.varnify-card-proof__print ~ .varnify-card-proof__facts {
		grid-column: 7 / 12;
		grid-row: 2;
		align-self: start;
		padding-left: 0;
	}
}

/* A background the owner gives the section in the Site Editor. */
.varnify-card-proof.has-background {
	padding-bottom: var(--vc-section);
}


/* ---------------------------------------------------------------------------
   How I work: steps written on ruled lines
   --------------------------------------------------------------------------- */

/* The print of you at work, beside the heading: a wide crop, cut for the
   hands and the work rather than the room. */
.varnify-card-how__print {
	margin: 32px 0 0;
}

.varnify-card-how__print img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

@media (min-width: 960px) {
	.varnify-card-how:has(> .varnify-card-how__print) {
		display: grid;
		grid-template-columns: repeat(12, minmax(0, 1fr));
		column-gap: 24px;
		align-items: start;
	}

	.varnify-card-how:has(> .varnify-card-how__print) > * {
		grid-column: 1 / -1;
		margin-left: 0 !important;
		margin-right: 0 !important;
		max-width: none;
	}

	.varnify-card-how:has(> .varnify-card-how__print) > h2 {
		grid-column: 1 / 5;
		grid-row: 1;
	}

	.varnify-card-how > .varnify-card-how__print {
		grid-column: 5 / -1;
		grid-row: 1;
		margin: 0;
	}

	.varnify-card-how__print img {
		aspect-ratio: 2 / 1;
	}

	/* The folded card is laid over the print's foot, from the left. */
	.varnify-card-how:has(> .varnify-card-how__print) > .varnify-card-steps {
		position: relative;
		grid-column: 1 / 12;
		grid-row: 2;
		margin-top: clamp(-120px, -7vw, -72px) !important;
	}
}

@media (max-width: 959px) {
	.varnify-card-how__print + .varnify-card-steps {
		position: relative;
		margin: -32px 10px 0 !important;
	}
}

/* The steps on one folded card, a leaflet in four panels: each panel as
   wide as its words need, the folds drawn in light and shade (lit on one
   side of each crease, in shadow on the other), no ruled lines. */
.varnify-card-steps {
	--vc-e: 5px;
	--vc-fold: rgb(70 56 30 / 0.075);
	--vc-fold-light: rgb(255 255 255 / 0.55);
	display: grid;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
	background: var(--vc-card);
	box-shadow: var(--vc-leaf);
	transform: rotate(-0.4deg);
}

.varnify-card-step {
	position: relative;
	margin: 0;
	padding: 26px 26px 30px;
	background: linear-gradient(180deg, var(--vc-fold-light), transparent 40%, var(--vc-fold));
}

.varnify-card-step:nth-child(even) {
	background: linear-gradient(180deg, var(--vc-fold), transparent 60%, var(--vc-fold-light));
}

.varnify-card-step > * {
	margin: 0;
}

/* The panels sit side by side in the leaflet's grid: the flow layout's
   gap between blocks would drop every panel after the first. */
.varnify-card-steps > .varnify-card-step {
	margin: 0;
}

/* When each step happens, written in above it in the ink, as the "on"
   and "at" are on the appointment card: no tab, no capitals.
   Round 9: in roman, in the card's face, as a printed schedule sets a
   date line; the italic is the appointment card's alone. */
.varnify-card-step__when,
.varnify-card-first__when {
	margin-bottom: 6px !important;
	font-family: var(--vc-face);
	font-size: 14px;
	font-stretch: 104%;
	font-weight: 600;
	letter-spacing: 0.01em;
	font-variant-numeric: lining-nums tabular-nums;
	line-height: 1.3;
	color: var(--vc-ink);
}

.varnify-card-step h3 {
	margin-top: 0;
	font-size: clamp(19px, 1vw + 11px, 22px);
}

.varnify-card-step__text {
	margin-top: 10px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--vc-grey);
}

@media (min-width: 700px) {
	.varnify-card-steps {
		grid-template-columns: 1.1fr 0.9fr;
	}

	.varnify-card-step {
		padding: 30px 30px 34px;
		background: linear-gradient(90deg, var(--vc-fold-light), transparent 45%, var(--vc-fold));
	}

	.varnify-card-step:nth-child(even) {
		background: linear-gradient(90deg, var(--vc-fold), transparent 55%, var(--vc-fold-light));
	}
}

/* Wide: one row of panels, each as wide as its words, the first panel
   (the free call) the widest, the way a leaflet's cover panel is. */
@media (min-width: 1100px) {
	.varnify-card-steps {
		grid-template-columns: 1.3fr 0.95fr 1.15fr 0.85fr;
	}

	/* The cover panel is the widest and its title the biggest, but its
	   "First" stays on the line with the other panels' "when". */
	.varnify-card-step:first-child h3 {
		font-size: clamp(22px, 1.2vw + 12px, 28px);
	}
}

/* Your first session (a therapist's): one card, not four steps, laid over
   the print's foot like the appointment card over the slab: when, in the
   ink's italic, then what it is like and what comes after. The therapist's
   soft corners. */
.varnify-card-first {
	--vc-e: 5px;
	position: relative;
	box-sizing: border-box;
	margin: -36px 10px 0;
	padding: 28px clamp(22px, 3vw, 40px) 30px;
	border-radius: 14px;
	background: var(--vc-card);
	box-shadow: var(--vc-stack);
	rotate: -0.5deg;
}

.varnify-card-first > * {
	margin: 0;
}


.varnify-card-first__title {
	margin-top: 4px !important;
	font-size: clamp(24px, 1.2vw + 14px, 30px);
}

.varnify-card-first__text {
	margin-top: 14px !important;
	max-width: 56ch;
	font-size: 18px;
	line-height: 1.55;
}

.varnify-card-first__after {
	margin-top: 12px !important;
	max-width: 56ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--vc-grey);
}

.varnify-card-first__book {
	margin-top: 18px !important;
	font-family: var(--vc-face);
	font-size: 16px;
	font-weight: 600;
}

.varnify-card-first__book a {
	display: inline-block;
	padding: 10px 0;
	color: var(--vc-black);
	text-decoration-color: var(--vc-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

@media (min-width: 960px) {
	.varnify-card-how:has(> .varnify-card-how__print) > .varnify-card-first {
		grid-column: 2 / 9;
		grid-row: 2;
		margin: clamp(-150px, -9vw, -90px) 0 0 !important;
	}
}

/* The phone's "show the rest" button under How I work and the team. */
.varnify-card-more {
	margin: 18px 0 0;
}

.varnify-card-more__button {
	min-height: 44px;
	padding: 10px 2px;
	border: 0;
	background: none;
	color: var(--vc-black);
	font-family: var(--vc-face);
	font-size: 16px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--vc-ink);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	cursor: pointer;
}

.varnify-card-more__button:focus-visible {
	outline: 2px solid var(--vc-black);
	outline-offset: 3px;
}

@media (max-width: 699px) {
	.varnify-card-collapsible:not(.is-open) > :nth-child(n + 2) {
		display: none;
	}
}

@media (min-width: 700px) {
	.varnify-card-more {
		display: none;
	}
}

/* A background the owner gives the section in the Site Editor. */
.varnify-card-how.has-background {
	padding-bottom: var(--vc-section);
}

.varnify-card-how.has-accent-background-color,
.varnify-card-how.has-accent-background-color * {
	color: var(--vc-card) !important;
}

.varnify-card-how.has-background .varnify-card-step {
	border-top-color: currentColor;
}

.varnify-card-how.has-background .varnify-card-step__when {
	position: static;
	transform: none;
	padding: 0;
	background: none;
	clip-path: none;
	font-family: var(--vc-face);
	font-size: 14px;
	font-stretch: 104%;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-transform: none;
}


/* ---------------------------------------------------------------------------
   Selected work: case cards over prints, on the page's one tinted sheet
   --------------------------------------------------------------------------- */

.varnify-card-work__sheet {
	position: relative;
	isolation: isolate;
	padding: clamp(32px, 4.5vw, 64px) clamp(20px, 3.4vw, 48px) clamp(40px, 5vw, 72px);
}

.varnify-card-work__sheet::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--vc-back);
	box-shadow: var(--vc-flat);
}

.varnify-card-work__head h2 {
	max-width: 14ch;
}

.varnify-card-work__note {
	margin: 12px 0 0;
	font-size: 17px;
	color: var(--vc-grey);
}

.varnify-card-work__list {
	display: grid;
	gap: 80px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}

.varnify-card-case {
	position: relative;
	margin: 0;
}

.varnify-card-case__photo {
	margin: 0;
}

.varnify-card-case__photo img,
.varnify-card-case__photo a {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.varnify-card-case__photo img {
	aspect-ratio: 3 / 2;
}

.varnify-card-case__text {
	position: relative;
	z-index: 1;
	width: min(330px, calc(100% - 24px));
	box-sizing: border-box;
	margin: -48px 0 0 auto;
	padding: 18px 22px 20px;
	background: var(--vc-card);
	box-shadow: var(--vc-stack);
	--vc-e: 5px;
}

.varnify-card-case__text > * {
	margin: 0;
}

.wp-block-varnify-card-case-facts.is-tab {
	position: absolute;
	top: 0;
	left: 22px;
	transform: translateY(-100%);
	line-height: 0;
}

.wp-block-varnify-card-case-facts.is-tab .varnify-card-tab {
	font-size: 12px;
	padding: 6px 12px 5px;
}

.wp-block-varnify-card-case-facts.is-client {
	margin-bottom: 6px;
	font-family: var(--vc-face);
	font-size: 16px;
	font-stretch: 108%;
	font-weight: 680;
	letter-spacing: 0;
	line-height: 1.3;
	text-shadow: var(--vc-press);
}

.varnify-card-case .wp-block-post-title,
.wp-block-varnify-card-case-facts.is-title {
	font-family: var(--vc-face);
	font-size: 20px;
	font-weight: 580;
	line-height: 1.18;
	letter-spacing: 0;
}

.varnify-card-case :is(.wp-block-post-title, .is-title) a {
	color: inherit;
	text-decoration: none;
}

.varnify-card-case :is(.wp-block-post-title, .is-title) a:hover {
	text-decoration: underline;
	text-decoration-color: var(--vc-ink);
	text-underline-offset: 3px;
}

/* The whole card follows the title's link. */
.varnify-card-case :is(.wp-block-post-title, .is-title) a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.varnify-card-case__outcome {
	margin-top: 8px !important;
	font-size: 15.5px;
	line-height: 1.42;
	color: var(--vc-grey);
}

.varnify-card-case__outcome .wp-block-post-excerpt__more-text {
	display: none;
}

.varnify-card-case__outcome p {
	margin: 0;
}

/* An invented case's slip, at the foot of its card. */
.varnify-card-case__text > .varnify-card-case__example {
	margin: 14px 0 0;
	padding: 8px 10px;
	font-size: 13.5px;
}

/* A case study with no photograph: a pressed file card. */
.varnify-card-blankprint {
	display: grid;
	place-items: center;
	aspect-ratio: 3 / 2;
	container-type: inline-size;
	background:
		linear-gradient(var(--vc-ink), var(--vc-ink)) 0 18% / 100% 2px no-repeat,
		var(--vc-back);
	box-shadow: var(--vc-flat);
}

.varnify-card-blankprint span {
	font-family: var(--vc-face);
	font-size: 34cqw;
	font-stretch: 130%;
	font-weight: 800;
	line-height: 1;
	color: color-mix(in oklab, var(--vc-back) 88%, var(--vc-ink));
	text-shadow: 0 0.4cqw 0.3cqw rgb(255 255 255 / 0.9), 0 -0.3cqw 0.4cqw rgb(40 30 10 / 0.35);
}

.varnify-card-work__next {
	gap: 16px 28px;
	margin-top: 72px;
}

.varnify-card-work__next > * {
	margin: 0;
}

.varnify-card-work__ask {
	font-family: var(--vc-face);
	font-size: 19px;
	font-weight: 600;
}

.varnify-card-work__all {
	font-family: var(--vc-face);
	font-size: 15px;
}

.varnify-card-work__all a {
	color: inherit;
	text-underline-offset: 3px;
}

@media (min-width: 700px) {
	.varnify-card-case__text {
		position: absolute;
		margin: 0;
		right: -24px;
		bottom: -40px;
	}

	.varnify-card-case {
		margin-bottom: 40px;
	}
}

@media (min-width: 1100px) {
	.varnify-card-work {
		--vc-sheet: 64%;
	}

	.varnify-card-work__sheet {
		padding-right: 0;
	}

	/* The last card hangs below its print; the sheet runs on under it, so
	   it does not land on the print that follows. */
	.varnify-card-work:not(.is-style-varnify-card-file):not(.is-style-varnify-card-folders) .varnify-card-work__sheet {
		padding-bottom: clamp(72px, 8vw, 136px);
	}

	.varnify-card-work__sheet::before {
		right: calc(100% - var(--vc-sheet));
		left: calc(-1 * clamp(0px, 3.4vw, 48px));
	}

	.varnify-card-work__head {
		width: 44%;
	}

	.varnify-card-work .varnify-card-work__list {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		grid-template-rows: auto auto;
		column-gap: 24px;
		row-gap: 0;
		margin-top: 40px;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(1) {
		grid-column: 1 / 8;
		grid-row: 1 / 3;
		align-self: start;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(1) .varnify-card-case__photo img {
		aspect-ratio: 616 / 400;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(2) {
		grid-column: 9 / 13;
		grid-row: 1;
		margin-top: -210px;
		margin-left: -64px;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(2) .varnify-card-case__photo img {
		aspect-ratio: 514 / 340;
	}

	/* Each case card hangs off an edge of its print, over the floor or the
	   wall, so the print's subject (the aisle, the counter, the hand at the
	   board) stays in view. */
	.varnify-card-work .varnify-card-work__list > :nth-child(2) .varnify-card-case__text {
		right: auto;
		left: -56px;
		bottom: -128px;
		width: 300px;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(3) {
		grid-column: 10 / 13;
		grid-row: 2;
		margin-top: 176px;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(3) .varnify-card-case__photo img {
		aspect-ratio: 376 / 250;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(3) .varnify-card-case__text {
		right: auto;
		left: -88px;
		top: calc(100% - 44px);
		bottom: auto;
		width: 290px;
	}

	.varnify-card-work .varnify-card-work__list > :nth-child(1) .varnify-card-case__text {
		right: -40px;
		bottom: -112px;
		width: 320px;
	}

	/* Clear of the cards hanging below the prints: the first hangs 112px
	   under its print, so the row starts lower than that. Two classes, or
	   core's flow-layout gap (:root :where(.is-layout-flow) > *) wins. */
	.varnify-card-work .varnify-card-work__next {
		margin-top: 112px;
		max-width: var(--vc-sheet);
	}
}


/* ---------------------------------------------------------------------------
   The packs' castings below the first screen. Each is a block style the
   pack's patterns start with ('cast' in Varnify_Card_Packs); the owner can
   change it on the block.
   --------------------------------------------------------------------------- */

/* The castings' own rules (warm prints, soft cards, the fee schedule, the
   card file and file folders, the quiet and engraved headlines) are in
   assets/css/casts.css, loaded only on a page that uses one of them, and
   always in the editor. The letterhead lines of the fee schedule stay
   hidden here, so they never show without it. */
.varnify-card-feecard__letterhead,
.varnify-card-feecard__subject {
	display: none;
}

/* A practice's regulator on a card of its own: the badge's place, then
   the authorisation line under the card's ink rule. */
.varnify-card-regcard {
	--vc-e: 4px;
	box-sizing: border-box;
	max-width: 460px;
	margin: 0 0 24px;
	padding: 18px 22px 16px;
	background:
		linear-gradient(var(--vc-ink), var(--vc-ink)) 0 0 / 100% 4px no-repeat,
		var(--vc-card);
	box-shadow: var(--vc-stack);
}

.varnify-card-regcard > * {
	margin: 0 !important;
}

.varnify-card-regcard > * + * {
	margin-top: 12px !important;
}

/* A therapist's credentials: memberships and where to check the licence,
   at reading size on a small card with the soft card's corners. */
.varnify-card-regcard--credentials {
	max-width: 440px;
	border-radius: 12px;
	font-size: 16px;
	line-height: 1.5;
}

.varnify-card-regcard--credentials .varnify-card-proof__check {
	font-family: var(--vc-text);
	font-size: 16px;
	font-weight: 400;
}

.varnify-card-regcard--credentials .varnify-card-proof__check a {
	color: var(--vc-black);
	text-decoration-color: var(--vc-ink);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

.varnify-card-regcard .varnify-card-badge-slot {
	max-width: 260px;
	background: var(--vc-page);
}

.varnify-card-where__photo figcaption {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--vc-grey);
}

/* ---------------------------------------------------------------------------
   Who you will work with
   --------------------------------------------------------------------------- */

.varnify-card-team__people {
	display: grid;
	gap: 48px;
	margin-top: 40px;
}

.varnify-card-person > * {
	margin: 0;
}

.varnify-card-person h3 {
	font-size: clamp(22px, 1.2vw + 12px, 27px);
	font-weight: 620;
	text-shadow: none;
}

.varnify-card-person__role {
	margin-top: 4px !important;
	font-size: 17px;
	color: var(--vc-grey);
}

.varnify-card-person__bio {
	margin-top: 16px !important;
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.45;
	max-width: 34ch;
}

.varnify-card-person__licence {
	margin-top: 14px !important;
	font-family: var(--vc-face);
	font-size: 14px;
	line-height: 1.45;
	color: var(--vc-grey);
}

@media (min-width: 700px) {
	.varnify-card-team__people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 40px;
	}
}

@media (min-width: 960px) {
	/* The heading over the people, not in a column of its own beside
	   them: no empty column under a two-line heading. */
	.varnify-card-team__grid > h2 {
		grid-column: 1 / -1;
	}

	/* Not two equal columns: the person you will mostly work with first,
	   at reading size, the others smaller beside them. */
	.varnify-card-team__people {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-auto-flow: dense;
		gap: 40px clamp(48px, 6vw, 112px);
		margin-top: 40px;
	}

	.varnify-card-person:first-child {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.varnify-card-person:only-child {
		grid-column: 1 / -1;
	}

	/* One person: the heading beside them, as a letterhead names its
	   writer, the bio at reading size in the wider column. */
	.varnify-card-team__grid:has(.varnify-card-person:only-child) > h2 {
		grid-column: 1 / 5;
	}

	.varnify-card-team__grid:has(.varnify-card-person:only-child) > .varnify-card-team__people {
		grid-column: 5 / 13;
		margin-top: 8px;
	}

	/* Three or more: one row, the person you will mostly work with in the
	   widest column, nobody stacked under a short bio. */
	.varnify-card-team__people:has(> :nth-child(3)) {
		grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
		grid-auto-flow: row;
	}

	.varnify-card-team__people:has(> :nth-child(3)) > .varnify-card-person {
		grid-column: auto;
		grid-row: auto;
		margin-top: 0;
	}

	.varnify-card-person:not(:first-child) {
		grid-column: 2;
	}

	/* The names share a line, whatever the owner's heading font: the
	   principal's bigger name and the associate's on one baseline. */
	.varnify-card-team__people:not(:has(> :nth-child(3))) > .varnify-card-person:is(:first-child, :nth-child(2)) {
		align-self: baseline;
	}

	.varnify-card-person:not(:first-child) .varnify-card-person__bio {
		font-size: 19px;
		line-height: 1.5;
	}

	.varnify-card-person:first-child h3 {
		font-size: clamp(26px, 1.4vw + 14px, 34px);
	}
}


/* ---------------------------------------------------------------------------
   Writing
   --------------------------------------------------------------------------- */

/* The latest writing as a card file: each piece an index card laid flat
   on the table, its title, standfirst and date written on its face. */
.varnify-card-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.varnify-card-writing__list > .wp-block-query {
	margin-top: 64px;
}

.varnify-card-posts > li {
	--vc-pad: clamp(18px, 2.4vw, 30px);
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	padding: 22px var(--vc-pad) 18px;
	--vc-e: 4px;
}

.varnify-card-posts > li > * {
	margin-block: 0;
}

.varnify-card-posts > li + li {
	margin-top: 26px;
}

/* Dealt by hand, not stacked: each card in the file is cut a little
   differently and lies a little off true, and none sits square over the
   one before. The order repeats every three cards. */
.varnify-card-posts > li,
.varnify-card-essays > li {
	--vc-deal-w: 100%;
	--vc-deal-x: 0%;
	--vc-deal-r: 0deg;
	width: var(--vc-deal-w);
	margin-left: var(--vc-deal-x);
	box-sizing: border-box;
}

/* Only the paper is turned, not the words: a turned layer of text is
   resampled and goes soft on a 1x screen. The card's face (its paper and
   edge) lies off true on a layer of its own under the text, which stays
   on the pixel grid and sharp at any zoom. */
.varnify-card-posts > li::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--vc-card);
	box-shadow: var(--vc-flat);
	rotate: var(--vc-deal-r);
}

.varnify-card-posts > li:nth-child(3n + 1),
.varnify-card-essays > li:nth-child(3n + 1) {
	--vc-deal-w: 94%;
	--vc-deal-r: -0.5deg;
}

.varnify-card-posts > li:nth-child(3n + 2),
.varnify-card-essays > li:nth-child(3n + 2) {
	--vc-deal-w: 82%;
	--vc-deal-x: 14%;
	--vc-deal-r: 0.45deg;
}

.varnify-card-posts > li:nth-child(3n),
.varnify-card-essays > li:nth-child(3n) {
	--vc-deal-w: 90%;
	--vc-deal-x: 5%;
	--vc-deal-r: -0.3deg;
}

@media (max-width: 599px) {
	.varnify-card-posts > li:nth-child(3n + 1),
	.varnify-card-essays > li:nth-child(3n + 1) {
		--vc-deal-w: 96%;
		--vc-deal-r: -0.6deg;
	}

	.varnify-card-posts > li:nth-child(3n + 2),
	.varnify-card-essays > li:nth-child(3n + 2) {
		--vc-deal-w: 92%;
		--vc-deal-x: 6%;
		--vc-deal-r: 0.45deg;
	}

	.varnify-card-posts > li:nth-child(3n),
	.varnify-card-essays > li:nth-child(3n) {
		--vc-deal-w: 95%;
		--vc-deal-x: 2%;
		--vc-deal-r: -0.3deg;
	}
}

.varnify-card-posts > li > .varnify-card-posts__title {
	position: relative;
}

.varnify-card-posts__excerpt {
	margin-top: 8px !important;
	font-size: 16px;
	line-height: 1.75;
	color: var(--vc-grey);
}

.varnify-card-posts__excerpt > * {
	margin: 0;
}

.varnify-card-posts__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

/* The date on the card's own foot line, after what it says. */
.varnify-card-posts > li > .varnify-card-posts__date {
	order: 3;
	margin-top: 12px;
	font-size: 13px;
	font-variant-numeric: tabular-nums lining-nums;
}

.varnify-card-posts > li > .varnify-card-posts__title {
	margin-top: 0;
}

@media (max-width: 959px) {
	.varnify-card-posts__excerpt {
		display: none;
	}
}

.varnify-card-posts__date,
.varnify-card-essay__date,
.varnify-card-essay__time {
	margin: 0;
	font-family: var(--vc-face);
	font-size: 14px;
	color: var(--vc-grey);
}

.varnify-card-posts__title {
	margin: 4px 0 0;
	font-family: var(--vc-text);
	font-size: clamp(22px, 1vw + 14px, 27px);
	font-weight: 420;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

:where(.varnify-card-posts__title, .varnify-card-essay, .varnify-card-start) a {
	color: inherit;
	text-decoration: none;
}

:where(.varnify-card-posts__title, .varnify-card-essay, .varnify-card-start) a:hover {
	text-decoration: underline;
	text-decoration-color: var(--vc-ink);
	text-underline-offset: 4px;
}

.varnify-card-writing__more {
	margin: 20px 0 0;
	font-size: 16px;
	color: var(--vc-grey);
}

.varnify-card-writing__more a {
	color: var(--vc-black);
	text-underline-offset: 3px;
}

.varnify-card-writing__start {
	margin-top: 56px;
}

.varnify-card-writing__start .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* "Start here": a card with its tab. */
.varnify-card-start {
	position: relative;
	display: grid;
	grid-template-columns: minmax(96px, 30%) 1fr;
	gap: 24px;
	padding: 28px;
	background: var(--vc-card);
	box-shadow: var(--vc-stack);
}

.varnify-card-start:not(:has(.wp-block-post-featured-image img)) {
	grid-template-columns: 1fr;
}

.varnify-card-start__cover:not(:has(img)) {
	display: none;
}

.varnify-card-start__cover .wp-block-post-featured-image {
	margin: 0;
}

.varnify-card-start__text > * {
	margin: 0;
}

/* Its date on the card's foot line, as on the other cards in the file. */
.varnify-card-start__text {
	display: flex;
	flex-direction: column;
}

.varnify-card-start__line {
	order: 3;
	gap: 12px;
	align-items: center;
	margin-top: 14px !important;
}

.varnify-card-start__label {
	position: absolute;
	top: 0;
	left: 28px;
	margin: 0;
	transform: translateY(-100%);
	padding: 7px 14px 6px;
	background: var(--vc-ink);
	color: var(--vc-card);
	font-family: var(--vc-face);
	font-size: 13px;
	font-stretch: 112%;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1;
	clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 100%, 0 100%);
}

.varnify-card-start .wp-block-post-date {
	font-size: 14px;
	color: var(--vc-grey);
}

.varnify-card-start .wp-block-post-title {
	margin-top: 8px;
	font-family: var(--vc-text);
	font-size: clamp(24px, 1vw + 16px, 30px);
	font-weight: 420;
	line-height: 1.15;
	letter-spacing: -0.012em;
}

.varnify-card-start .wp-block-post-excerpt {
	margin-top: 10px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--vc-grey);
}

.varnify-card-start .wp-block-post-excerpt__more-text {
	display: none;
}

@media (min-width: 960px) {
	.varnify-card-writing__list {
		grid-column: 1 / 7;
	}

	.varnify-card-writing__start {
		grid-column: 8 / 13;
		align-self: start;
		margin-top: 96px;
	}
}


/* ---------------------------------------------------------------------------
   Where: the address on a slip, beside a print of the room
   --------------------------------------------------------------------------- */

.varnify-card-where__photo {
	margin: 0;
}

.varnify-card-where__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.varnify-card-slip {
	position: relative;
	z-index: 1;
	margin: -48px 12px 0;
	padding: clamp(24px, 3.4vw, 44px);
	background: var(--vc-card);
	box-shadow: var(--vc-stack);
	--vc-e: 6px;
}

.varnify-card-slip > * {
	margin: 0 0 12px;
}

.varnify-card-slip h2 {
	margin-bottom: 18px;
	font-size: clamp(30px, 2vw + 18px, 44px);
}

.varnify-card-where__address {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.4;
}

.varnify-card-slip p:not(.varnify-card-where__address) {
	font-size: 17px;
	line-height: 1.5;
	color: var(--vc-grey);
}

.varnify-card-where__map a {
	font-family: var(--vc-face);
	font-weight: 600;
	color: var(--vc-black);
	text-underline-offset: 3px;
}

@media (min-width: 960px) {
	.varnify-card-where__photo {
		grid-column: 1 / 8;
		grid-row: 1;
	}

	/* Beside the print, not over it (round 9): the cards laid over a
	   print's corner are How I work's leaflet, the case files and the
	   band's caption; the address stands clear, its foot on the print's. */
	.varnify-card-slip {
		grid-column: 8 / 13;
		grid-row: 1;
		align-self: end;
		margin: 0 0 0 16px;
	}
}


/* ---------------------------------------------------------------------------
   Booking section
   --------------------------------------------------------------------------- */

.varnify-card-book__title {
	max-width: 24ch;
}

.varnify-card-book__intro {
	max-width: 46ch;
	margin: 18px 0 48px;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.45;
	color: var(--vc-grey);
}


/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.varnify-card-footer {
	padding-top: 0;
	padding-bottom: 40px;
	font-size: 15px;
	line-height: 1.5;
}

.varnify-card-footer > * {
	margin-block: 0;
}

.varnify-card-footer__crisis {
	max-width: 62ch;
	padding-top: 32px;
	font-size: 17px;
	font-weight: 600;
}

.varnify-card-footer__grid {
	display: grid;
	gap: 24px 48px;
	margin-top: 32px !important;
	padding-top: 32px;
}

.varnify-card-footer__about > *,
.varnify-card-footer__links > * {
	margin: 0 0 8px;
}

.varnify-card-footer__about p:not(.wp-block-site-title) {
	max-width: 60ch;
	color: var(--vc-grey);
}

.varnify-card-footer .wp-block-site-title {
	margin-bottom: 14px;
	font-family: var(--vc-face);
	font-size: 14px;
	font-stretch: 150%;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.varnify-card-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	font-family: var(--vc-face);
}

.varnify-card-footer a,
.varnify-card-footer__inline a {
	display: inline-block;
	padding-block: 10px;
	color: inherit;
	text-decoration: none;
}

.varnify-card-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.varnify-card-footer__colophon {
	margin-top: 24px !important;
	font-size: 14px;
	color: var(--vc-grey);
}

@media (min-width: 960px) {
	.varnify-card-footer__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	}

	.varnify-card-footer__links {
		justify-content: flex-end;
		align-content: flex-start;
	}
}

.varnify-card-footer--slim {
	padding-top: 0;
}

.varnify-card-footer__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 24px;
}

.varnify-card-footer__row > p {
	max-width: 70ch;
	margin: 10px 0;
	color: var(--vc-grey);
}

.varnify-card-footer__inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0 22px;
	font-family: var(--vc-face);
}

.varnify-card-footer__inline > p {
	margin: 0;
}

/* A background the owner gives the footer in the Site Editor. */
.varnify-card-footer.has-background {
	padding-top: 40px;
}

.varnify-card-footer.has-background .varnify-card-footer__grid,
.varnify-card-footer.has-background .varnify-card-footer__row {
	border-top-color: currentColor;
}

.varnify-card-footer.has-background p:not(.wp-block-site-title) {
	color: inherit;
}


/* ---------------------------------------------------------------------------
   Inner pages: in assets/css/pages.css, loaded everywhere but the front
   page. The case facts' one-line view stays here: the front's case cards
   use it for their titles.
   --------------------------------------------------------------------------- */

.wp-block-varnify-card-case-facts:not(.is-list):not(.is-tab):not(.is-client) {
	font-family: var(--vc-face);
	font-size: 14px;
	color: var(--vc-grey);
}

/* ---------------------------------------------------------------------------
   The phone's docked edge: once the hero's appointment card has scrolled
   away, the next free time stays in reach at the foot of the screen
   --------------------------------------------------------------------------- */

.varnify-card-dock {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: 10px;
	z-index: 40;
	display: flex;
	align-items: stretch;
	background: var(--vc-back);
	box-shadow: 0 0 0 1px rgb(60 50 30 / 0.08), 0 3px 0 0 var(--vc-core), 0 14px 24px -10px rgb(20 16 10 / 0.45);
	font-family: var(--vc-face);
	transform: translateY(calc(100% + 24px));
	visibility: hidden;
}

.varnify-card-dock.is-shown {
	transform: none;
	visibility: visible;
}

.varnify-card-dock__when {
	display: grid;
	flex: 1;
	align-content: center;
	padding: 8px 14px;
	font-size: 14px;
	line-height: 1.25;
}

.varnify-card-dock__when b {
	font-weight: 600;
	color: var(--vc-ink);
}

.varnify-card-dock__label {
	font-size: 13px;
	font-stretch: 112%;
	font-weight: 650;
}

.varnify-card-dock a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0 18px;
	background: var(--vc-black);
	color: var(--vc-card);
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
	.varnify-card-dock {
		transition: transform 0.3s ease, visibility 0.3s;
	}
}

@media (min-width: 782px) {
	.varnify-card-dock {
		display: none;
	}
}

/* Focus never lands under the docked card (WCAG 2.4.11): while the bar is
   on the page the browser keeps a focused link clear of it. The script
   measures the bar (--varnify-card-dock-room); 84px is a bar of one or two
   lines, 10px off the foot. Not on the body: the browser reads it from html. */
@media (max-width: 781px) {
	html:has(> body > .varnify-card-dock) {
		scroll-padding-bottom: var(--varnify-card-dock-room, 84px);
	}
}

/* While the docked card holds Book at the foot of a phone, the stuck
   header lets its own "Book a call" go, so the action is not shown twice
   (the HQ rule allows the docked bar to take it over). It comes back with
   the header's button as the bar leaves, near the booking and the foot. */
@media (max-width: 781px) {
	body:has(.varnify-card-dock.is-shown) .varnify-card-header__book {
		display: none;
	}
}


/* ---------------------------------------------------------------------------
   Light text on the dark palette colours, where the owner sets them
   --------------------------------------------------------------------------- */

.has-accent-background-color.has-base-color {
	color: var(--vc-card) !important;
}

.has-ink-background-color.has-base-color {
	color: var(--vc-card) !important;
}
