/* Our Work: monotone imagery. Greyscale at rest, colour on hover, focus or tap, and on
   an open list row (the list's Toggles carry hs-grey, so the Logo and the screenshot
   follow the same switch). An Archive Logo turns to colour only through its link, so a
   Logo with no Live site (no link) stays grey. */
.hs-grey img,
.hs-archive-logo img {
	filter: grayscale(1);
	transition: filter .35s ease, transform .35s ease;
}
.hs-grey:hover img,
.hs-grey:focus-within img,
.hs-grey:active img,
.hs-grey.et_pb_toggle_open img,
.hs-archive-logo a:hover img,
.hs-archive-logo a:focus img,
.hs-archive-logo a:active img {
	filter: grayscale(0);
}
@media (prefers-reduced-motion: reduce) {
	.hs-grey img,
	.hs-archive-logo img { transition: none; }
}
/* Case study hero facts panel (template_project.py's fact()/hero()): the label and value
   share one line with no visual distinction between them; give the label its own
   treatment and the panel a top rule so it reads as a facts block, not a paragraph.
   Classes are literal HTML emitted by fact() - .hs-facts on the column, .hs-fact on each
   <p>, .hs-fact-label on the label <span> inside it. */
.hs-facts {
	border-top: 1px solid #1D1D18;
	padding-top: 14px;
}
.hs-facts .hs-fact {
	margin: 0 0 10px;
}
.hs-facts .hs-fact-label {
	display: inline-block;
	min-width: 90px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8A8A82;
}
/* Hero and card imagery: fixed crop so the grid stays even regardless of source size. */
.hs-hero-shot img {
	aspect-ratio: 21 / 9;
	object-fit: cover;
	width: 100%;
}
.hs-card-shot img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}
/* Eyebrow kickers (css_class="hs-eyebrow" on a text module). A bare .hs-eyebrow rule
   does not reach them: Divi emits its own `.et_pb_text_N .et_pb_text_inner` font rule,
   with colour flagged !important, INTO THE PAGE HEAD after the child theme stylesheet,
   so it outranks a single class selector on every property. The fix: match Divi's own
   selector shape with one more class in it, and match its
   !important on colour. The plain selectors are kept first so the intent reads. */
.hs-eyebrow, .hs-eyebrow p,
.hs-eyebrow.et_pb_text .et_pb_text_inner,
.hs-eyebrow.et_pb_text .et_pb_text_inner p {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8A8A82 !important;
}
/* On the near-black bands the same kicker takes ON_INK_MUTED (.hs-dark is the
   testimonials band, .hs-outcome the old case study outcome band). */
.hs-dark .hs-eyebrow.et_pb_text .et_pb_text_inner,
.hs-dark .hs-eyebrow.et_pb_text .et_pb_text_inner p,
.hs-outcome .hs-eyebrow.et_pb_text .et_pb_text_inner,
.hs-outcome .hs-eyebrow.et_pb_text .et_pb_text_inner p {
	color: #B3B3AC !important;
}

/* ==========================================================================
   The list (Our Work, ticket 03; page_our_work.py's the_list()).
   Section .hs-work > row .hs-list > looped columns .hs-list-item, each holding one
   Toggle .hs-row (.hs-row-case-study or .hs-row-featured). The title is HTML spans
   (.hs-who > .hs-mark + .hs-name-wrap, .hs-industry; no year, 2026-10-26); our-work-list.js wraps
   them in a <button class="hs-row-btn">. Selectors carry .hs-work plus the Divi class
   so they outrank Divi's own toggle rules without !important.
   ========================================================================== */
.hs-work .hs-list {
	border-top: 1px solid #1D1D18;
}
.hs-work .hs-list-item {
	margin: 0;
}
.hs-work .et_pb_toggle.hs-row {
	border: 0;
	border-bottom: 1px solid #DDDDD6;
	border-radius: 0;
	padding: 0;
	margin: 0;
	background: transparent;
	width: 100%;
	gap: 0; /* Divi's flex toggle puts 30px between the title and the body */
}
.hs-work .et_pb_toggle.hs-row .et_pb_toggle_title {
	padding: 0 40px 0 0;
	margin: 0;
	font-size: inherit;
	line-height: 1.3;
}
/* The plus sign. Divi's own ::before icon is ETmodules (font forced) and prints nothing
   here, so the mockup's "+" is drawn on ::after and turns to an "x" when open. */
.hs-work .et_pb_toggle.hs-row .et_pb_toggle_title {
	position: relative;
}
.hs-work .et_pb_toggle.hs-row .et_pb_toggle_title::before {
	display: none;
}
.hs-work .et_pb_toggle.hs-row .et_pb_toggle_title::after {
	content: "+";
	display: block;
	position: absolute;
	right: 4px;
	top: 50%;
	margin-top: -13px;
	font-family: Heebo, sans-serif;
	font-size: 26px;
	font-weight: 300;
	line-height: 26px;
	color: #1D1D18;
	transition: transform .25s ease;
	pointer-events: none;
}
.hs-work .et_pb_toggle_open.hs-row .et_pb_toggle_title::after {
	transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
	.hs-work .et_pb_toggle.hs-row .et_pb_toggle_title::after { transition: none; }
}
/* The row's clickable line. The button (added by JS) is the grid; without JS (the
   Visual Builder) the <h5> itself is. */
.hs-work .hs-row .hs-row-btn,
.hs-work .hs-row .et_pb_toggle_title:not(:has(> .hs-row-btn)) {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px 20px;
	align-items: center;
	padding: 18px 0;
}
.hs-work .hs-row .hs-row-btn {
	width: 100%;
	margin: 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
}
.hs-work .hs-row .hs-row-btn:focus-visible {
	outline: 2px solid #1D1D18;
	outline-offset: 4px;
}
.hs-work .hs-row .hs-who {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}
/* The Logo in a circle. The client's initials (hs_initials, up to two letters) sit
   underneath and show only when the Logo's src is empty (no Logo set; Smush moves an
   empty src to data-src, so both are matched). */
.hs-work .hs-row .hs-mark {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid #DDDDD6;
	background: #FFFFFF;
	display: grid;
	place-items: center;
}
.hs-work .hs-row .hs-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hs-work .hs-row .hs-initial {
	display: none;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	color: #1D1D18;
}
.hs-work .hs-row .hs-mark:has(img[src=""], img[data-src=""], img:not([src])) img {
	display: none;
}
.hs-work .hs-row .hs-mark:has(img[src=""], img[data-src=""], img:not([src])) .hs-initial {
	display: block;
}
.hs-work .hs-row .hs-name {
	display: block;
	font-size: clamp(20px, 2.6vw, 26px);
	font-weight: 600;
	color: #1D1D18;
}
.hs-work .hs-row .hs-tier {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #8A8A82;
}
.hs-work .hs-row .hs-industry {
	font-size: 14px;
	font-weight: 500;
	color: #8A8A82;
}
/* The open body: screenshot, brief, Services, pills. Stacked on a phone, with the pills
   side by side; from 720px the screenshot takes a 320px column on the left. */
.hs-work .et_pb_toggle.hs-row .et_pb_toggle_content {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-content: start;
	gap: 14px 8px;
	padding: 6px 0 26px;
	margin: 0;
}
.hs-work .et_pb_toggle_close.hs-row .et_pb_toggle_content {
	display: none;
}
.hs-work .hs-row .et_pb_toggle_content > .et_pb_module:not(.et_pb_button_module_wrapper) {
	grid-column: 1 / -1;
	margin: 0;
	width: 100%;
}
/* The site's default button preset gives its wrapper margin-right 30px !important (12px
   at phone) to space the site's CTA pairs; the grid gap spaces the pills here instead,
   so the reset has to match that !important. */
.hs-work .hs-row .et_pb_toggle_content > .et_pb_module.et_pb_button_module_wrapper {
	margin: 0 !important;
	align-self: start;
}
.hs-work .hs-row .hs-row-shot img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
	width: 100%;
}
.hs-work .hs-row .hs-row-brief p {
	max-width: 58ch;
}
.hs-work .hs-row .hs-pill.et_pb_button {
	padding-top: 7px !important;
	padding-bottom: 7px !important;
	font-size: 13px;
	box-shadow: none;
}
@media (min-width: 720px) {
	.hs-work .hs-row .hs-row-btn,
	.hs-work .hs-row .et_pb_toggle_title:not(:has(> .hs-row-btn)) {
		grid-template-columns: 2.2fr 1.8fr;
	}
	.hs-work .et_pb_toggle.hs-row .et_pb_toggle_content {
		grid-template-columns: 320px auto auto 1fr;
		/* Brief, Services and pills (rows 2 to 4) sit between two equal spacer rows, so
		   the text block is centred against the screenshot. When the text is taller the
		   spacers fall to zero and the screenshot centres on the text instead. */
		grid-template-rows: 1fr auto auto auto 1fr;
		gap: 12px 8px;
		padding-left: 64px;
	}
	.hs-work .hs-row .et_pb_toggle_content > .et_pb_module:not(.et_pb_button_module_wrapper) {
		grid-column: 2 / -1;
	}
	.hs-work .hs-row .et_pb_toggle_content > .hs-row-brief {
		grid-row: 2;
	}
	.hs-work .hs-row .et_pb_toggle_content > .hs-row-services {
		grid-row: 3;
	}
	.hs-work .hs-row .et_pb_toggle_content > .et_pb_button_module_wrapper {
		grid-row: 4;
	}
	/* .et_pb_module.hs-row-shot outranks the :not() rule above, which would otherwise
	   send the screenshot to the text column. */
	.hs-work .hs-row .et_pb_toggle_content > .et_pb_module.hs-row-shot.hs-row-shot {
		grid-column: 1;
		grid-row: 1 / -1;
		align-self: center;
		margin-right: 16px;
	}
}
/* ======================== end of the list block ======================== */

/* ==========================================================================
   The Archive (Our Work, ticket 04; page_our_work.py's archive()).
   Section .hs-archive > row .hs-archive-wall > looped columns .hs-archive-logo, each
   holding a Text module .hs-archive-initial (span .hs-initial, the client's initials)
   and an Image module, the mark (inside an <a> only when the Project has a Live site).
   The mark is the Logo, or the child theme's transparent no-logo.svg when there is
   none: then the initials show through it, and the link still covers the circle.
   ========================================================================== */
.hs-archive .et_pb_row.hs-archive-wall {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 28px;
}
@media (max-width: 600px) {
	.hs-archive .et_pb_row.hs-archive-wall {
		grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
		gap: 20px;
	}
}
.hs-archive .hs-archive-wall > .et_pb_column.hs-archive-logo {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 120px;
	margin: 0 auto;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid #DDDDD6;
	background: #FFFFFF;
	overflow: hidden;
}
/* Both modules share the one cell: the mark covers the circle, the initials sit under. */
.hs-archive .hs-archive-logo > .et_pb_module {
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	margin: 0;
}
.hs-archive .hs-archive-logo .et_pb_image a,
.hs-archive .hs-archive-logo .et_pb_image_wrap,
.hs-archive .hs-archive-logo .et_pb_image img {
	display: block;
	width: 100%;
	height: 100%;
}
.hs-archive .hs-archive-logo .et_pb_image img {
	object-fit: cover;
}
.hs-archive .hs-archive-logo .et_pb_image a {
	border-radius: 50%;
}
/* The focus ring goes on the circle: on the link it would sit under the Logo. */
.hs-archive .hs-archive-logo .et_pb_image a:focus {
	outline: none;
}
.hs-archive .hs-archive-wall > .et_pb_column.hs-archive-logo:has(a:focus-visible) {
	outline: 2px solid #1D1D18;
	outline-offset: 3px;
}
/* The initials: shown only under the no-logo placeholder (Smush may move the src to
   data-src, so both are matched). Grey at rest; ink when their link is hovered or
   focused, the same cue a Logo gives by turning to colour. */
.hs-archive .hs-archive-logo > .hs-archive-initial {
	display: none;
	place-items: center;
}
.hs-archive .hs-archive-logo:has(img[src$="/no-logo.svg"], img[data-src$="/no-logo.svg"]) > .hs-archive-initial,
.hs-archive .hs-archive-logo:not(:has(img)) > .hs-archive-initial {
	display: grid;
}
.hs-archive .hs-archive-initial .hs-initial {
	display: block;
	text-align: center;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1;
	color: #8A8A82;
	transition: color .35s ease;
}
.hs-archive .hs-archive-logo:has(a:hover, a:focus-visible) .hs-initial {
	color: #1D1D18;
}
/* ======================= end of the archive block ======================= */

/* ==========================================================================
   Case study page frame (ticket 05): template_project.py and body_case_study.py.
   Everything for the case study template lives in this block.
   ========================================================================== */

/* Hero: Client label above a headline that stays a readable measure. */
.hs-case-hero .et_pb_post_title h1 {
	max-width: 20ch;
}
.hs-case-hero .hs-brief p {
	max-width: 60ch;
}

/* Stats row: ruled top and bottom in ink, thin dividers between the Stats; stacked
   with horizontal rules below the tablet breakpoint. */
.hs-stats {
	border-top: 1px solid #1D1D18;
	border-bottom: 1px solid #1D1D18;
}
.hs-stat {
	padding: 22px 24px 20px 0;
	border-right: 1px solid #DDDDD6;
}
.hs-stat + .hs-stat {
	padding-left: 24px;
}
.hs-stat:last-child {
	border-right: 0;
}
.hs-stat-value p,
.hs-stat-value.et_pb_text .et_pb_text_inner {
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.hs-stat .et_pb_module {
	margin-bottom: 6px;
}
@media (max-width: 980px) {
	.hs-stat {
		padding: 22px 0 20px;
		border-right: 0;
		border-bottom: 1px solid #DDDDD6;
	}
	.hs-stat + .hs-stat {
		padding-left: 0;
	}
	.hs-stat:last-child {
		border-bottom: 0;
	}
}

/* Sidebar: Logo beside the Client name, the index as ruled number/title rows, the
   facts as label/value rows, then the Visit site pill. */
/* Block, not Divi's flex column, so the Logo can float beside the Client name. */
.hs-sidebar.et_pb_column {
	display: block;
}
.hs-sidebar .et_pb_module {
	margin-bottom: 0;
}
/* body #page-container outranks Divi's four-class flex-module margin reset, and the
   Logo module is held to the image's width (Divi gives it 180px). */
body #page-container .hs-sidebar .hs-side-logo {
	float: left;
	width: 44px;
	margin: 0 12px 18px 0;
}
.hs-sidebar .hs-side-logo img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #DDDDD6;
	object-fit: cover;
	background: #FFFFFF;
}
/* Divi flex modules run in a column: centre the name on the Logo, keep it left. */
body #page-container .hs-sidebar .hs-side-client {
	min-height: 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	margin-bottom: 18px;
	line-height: 1.3;
}
/* The theme centres text modules on phones; the Sidebar reads left aligned throughout. */
.hs-sidebar .et_pb_text,
.hs-sidebar .et_pb_text p {
	text-align: left;
}
.hs-sidebar .hs-index-label {
	clear: both;
	margin-bottom: 4px;
}
.hs-index-entry p {
	margin: 0;
	padding: 0;
}
.hs-index-entry a {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 6px;
	padding: 4px 0;
	border-bottom: 1px solid #DDDDD6;
	color: #1D1D18;
	text-decoration: none;
}
.hs-index-entry a:hover,
.hs-index-entry a:focus-visible {
	text-decoration: underline;
}
.hs-index-entry .hs-num {
	color: #8A8A82;
	font-variant-numeric: tabular-nums;
}
.hs-sidebar .hs-fact-line:first-of-type,
.hs-sidebar .hs-index-entry + .hs-fact-line {
	margin-top: 22px;
}
.hs-sidebar .hs-fact {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 10px;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}
.hs-sidebar .hs-fact-label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8A8A82;
	padding-top: 3px;
}
.hs-sidebar .hs-visit {
	margin-top: 20px;
}
@media (max-width: 980px) {
	.hs-sidebar {
		margin-bottom: 40px;
	}
}
/* Desktop widths where the Sidebar is narrow (185 to 230px): label above value, so the
   Live site and the Services list get the full width. */
@media (min-width: 981px) and (max-width: 1199px) {
	.hs-sidebar .hs-fact {
		grid-template-columns: 1fr;
		gap: 0;
		margin-bottom: 12px;
	}
}

/* Chapters: the project's own sections and rows sit inside this column, so they drop
   their section padding and their row width cap and take the column's width. */
.hs-chapters .et_pb_section {
	padding: 0 0 48px;
	background: none;
}
.hs-chapters .et_pb_section .et_pb_row {
	width: 100%;
	max-width: none;
	padding: 0;
}
.hs-chapter,
#in-their-words {
	scroll-margin-top: 110px;
}
.hs-chapters .hs-chapter-num p,
.hs-chapters .hs-chapter-num {
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
	margin-bottom: 4px;
}
.hs-chapter-copy p,
.hs-chapter-copy li {
	max-width: 62ch;
}
.hs-chapter-copy ul {
	padding-left: 18px;
}
.hs-chapter-shots {
	margin-top: 24px;
}
.hs-chapters .hs-quote {
	margin: 4px 0 0;
	padding: 6px 0 6px 24px;
	border-left: 2px solid #1D1D18;
	font-weight: 300;
	line-height: 1.4;
	max-width: 40ch;
}
.hs-chapters .hs-quote p {
	padding: 0;
}
/* The site's blockquote carries a large decorative quote mark; the ruled edge is the
   quote's mark here. */
.hs-chapters .hs-quote::before {
	content: none;
}

/* ===================== end of the case study page frame ===================== */

/* ==========================================================================
   Up next card (ticket 07): template_project.py's up_next(). The looped column
   .hs-up-next-slot is the card: the label, a 16:9 screenshot, then the Client label and
   the outcome headline beside it from 720px. One link, the headline's, stretched over
   the whole card.
   ========================================================================== */
.hs-up-next .hs-up-next-row {
	padding: 0;
}
.hs-up-next-slot.et_pb_column {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	position: relative;
	border-top: 1px solid #1D1D18;
	padding-top: 36px;
}
.hs-up-next-slot .et_pb_module {
	margin: 0 !important;
}
.hs-up-next-slot .hs-up-next-shot,
.hs-up-next-slot .hs-up-next-shot .et_pb_image_wrap {
	display: block;
	width: 100%;
}
.hs-up-next-shot img {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: cover;
	object-position: top;
	background: #F4F4F0; /* WASH */
}
.hs-up-next-title a {
	color: inherit;
	text-decoration: none;
}
/* Divi positions the heading module and its container, which would trap the overlay
   inside the headline: release them so the card column is its containing block. */
.hs-up-next-slot .hs-up-next-title,
.hs-up-next-slot .hs-up-next-title .et_pb_heading_container {
	position: static;
}
.hs-up-next-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.hs-up-next-slot:hover .hs-up-next-title a {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.hs-up-next-title a:focus-visible {
	outline: none;
}
.hs-up-next-title a:focus-visible::after {
	outline: 2px solid #1D1D18;
	outline-offset: 6px;
}
@media (min-width: 720px) {
	.hs-up-next-slot.et_pb_column {
		grid-template-columns: 1fr 1.3fr;
		column-gap: 32px;
		row-gap: 8px;
		align-items: center;
	}
	.hs-up-next-slot .hs-up-next-label {
		grid-column: 1 / -1;
		margin-bottom: 10px !important;
	}
	.hs-up-next-slot .hs-up-next-shot {
		grid-column: 1;
		grid-row: 2 / span 2;
	}
	.hs-up-next-slot .hs-up-next-client {
		grid-column: 2;
		grid-row: 2;
		align-self: end;
	}
	.hs-up-next-slot .hs-up-next-title {
		grid-column: 2;
		grid-row: 3;
		align-self: start;
	}
}

/* ========================== end of the Up next card ========================== */

/* ==========================================================================
   Closing band (closing_band.py), the same on Our Work and every Case study.
   On Our Work it follows the testimonials band (.hs-dark), also near-black: there it
   drops its own top padding and opens with a rule (INK_70) at the row's width, so the
   two read as separate bands and the heading keeps its distance from the rule.
   ========================================================================== */
.et_pb_section.hs-dark + .et_pb_section.hs-closing {
	padding-top: 0;
}
.et_pb_section.hs-dark + .et_pb_section.hs-closing .hs-closing-row {
	border-top: 1px solid #4A4A43;
	padding-top: 80px;
}
.hs-closing .hs-closing-actions.et_pb_column {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	gap: 12px;
}
.hs-closing .hs-closing-actions .et_pb_button_module_wrapper {
	margin: 0 !important;
}
/* The site's button preset hovers to a mid grey, which leaves ink text unreadable on the
   white pill. On ink the two buttons swap instead: the white pill empties to an outline,
   the outline fills white. Divi prints each button's colour as
   `body #page-container .et_pb_section .et_pb_button_N { color: ... !important }`, so these
   rules carry the same id and one more class. */
.hs-closing .hs-closing-actions .et_pb_button,
.hs-closing .hs-closing-actions .et_pb_button:hover {
	border: 1.5px solid #FFFFFF !important; /* both, at rest too, so hover never resizes */
}
body #page-container .hs-closing .hs-closing-actions .et_pb_button_module_wrapper:first-child .et_pb_button:hover,
body #page-container .hs-closing .hs-closing-actions .et_pb_button_module_wrapper:first-child .et_pb_button:focus-visible {
	background: transparent !important;
	color: #FFFFFF !important;
}
body #page-container .hs-closing .hs-closing-actions .et_pb_button_module_wrapper:last-child .et_pb_button:hover,
body #page-container .hs-closing .hs-closing-actions .et_pb_button_module_wrapper:last-child .et_pb_button:focus-visible {
	background: #FFFFFF !important;
	color: #1D1D18 !important;
}
/* ========================= end of the closing band ========================= */

/* ==========================================================================
   Pill icons: list row pills, the closing band buttons and the Sidebar Visit site.
   Divi shows an arrow icon on hover and expects to widen the button's right padding
   to hold it. Each pill here pins its padding (Divi's per-button rule does too, with
   !important on hover), so the icon used to land on or past the pill's curve.
   At rest the text is centred in --hs-pill-x each side. On hover the text slides left
   by --hs-pill-shift and the icon (1em wide) fades in, anchored to the right edge.
   Total padding is unchanged, so the pill never resizes, and with shift = (X + 1em) / 3
   the left padding, the text-to-icon gap and the icon-to-edge gap are all X - shift.
   Divi's per-button `body #page-container .et_pb_section .et_pb_button_N` rules carry
   the id, so these do too.
   ========================================================================== */
body #page-container .hs-work .hs-row .hs-pill.et_pb_button {
	--hs-pill-x: 22px;
}
body #page-container .hs-closing .hs-closing-actions .et_pb_button,
body #page-container .hs-sidebar .hs-visit.et_pb_button {
	--hs-pill-x: 28px;
}
body #page-container .hs-work .hs-row .hs-pill.et_pb_button,
body #page-container .hs-closing .hs-closing-actions .et_pb_button,
body #page-container .hs-sidebar .hs-visit.et_pb_button {
	--hs-pill-shift: calc((var(--hs-pill-x) + 1em) / 3);
	padding-left: var(--hs-pill-x) !important;
	padding-right: var(--hs-pill-x) !important;
}
body #page-container .hs-work .hs-row .hs-pill.et_pb_button:hover,
body #page-container .hs-closing .hs-closing-actions .et_pb_button:hover,
body #page-container .hs-sidebar .hs-visit.et_pb_button:hover {
	padding-left: calc(var(--hs-pill-x) - var(--hs-pill-shift)) !important;
	padding-right: calc(var(--hs-pill-x) + var(--hs-pill-shift)) !important;
}
body #page-container .hs-work .hs-row .hs-pill.et_pb_button::after,
body #page-container .hs-closing .hs-closing-actions .et_pb_button::after,
body #page-container .hs-sidebar .hs-visit.et_pb_button::after {
	left: auto;
	right: calc(var(--hs-pill-x) - var(--hs-pill-shift));
	margin-left: 0 !important;
}
/* The closing band swaps fill and text on hover (see above); Divi keeps the icon white,
   which vanished on Set up a consultation's white fill. The icon follows the text. */
body #page-container .hs-closing .hs-closing-actions .et_pb_button:hover::after {
	color: inherit !important;
}
@media (prefers-reduced-motion: reduce) {
	body #page-container .hs-work .hs-row .hs-pill.et_pb_button,
	body #page-container .hs-closing .hs-closing-actions .et_pb_button,
	body #page-container .hs-sidebar .hs-visit.et_pb_button {
		transition: none;
	}
}
/* ============================ end of pill icons ============================ */
