/*
Theme Name: MK Law 2.0
Theme URI: https://mklaw.nz/
Author: MK Law
Description: The MK Law website, rebuilt for the firm's jubilee. Presentation only: firm details, the enquiry form, testimonials and team fields live in the MK Law Core plugin.
Version: 2.0.0
Requires at least: 6.8
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mklaw
*/

/*
Contents
  1. Fonts
  2. Tokens
  3. Base
  4. Layout helpers, buttons
  5. Header and main menu
  6. Home page
  7. Page headers, pages, section links
  8. Article lists and single articles
  9. Written content (blocks)
 10. Contact form
 11. Footer
 12. Motion
 13. Print
*/

/* 1. Fonts ------------------------------------------------------------- */

@font-face {
	font-family: "Montserrat Variable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(assets/fonts/montserrat-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Montserrat Variable";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(assets/fonts/montserrat-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/lato-400-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/lato-400-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Lato;
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/lato-400i-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Lato;
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url(assets/fonts/lato-400i-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/lato-700-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: Lato;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(assets/fonts/lato-700-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens ------------------------------------------------------------ */

:root {
	/* White text passes contrast on --deep-blue and --ink at any size; on --blue only at 19px bold or larger. */
	--blue: #1995cc;
	--deep-blue: #12719c;
	--ink: #16242e;
	--slate: #4b5560;
	--mist: #f2f7fa;
	--line: #d6e2ea;
	--white: #fff;
	--error: #a4282c;
	--ink-raised: #1f313d;
	--on-ink-soft: #c9d6de;

	/* Review stars only. Google's gold is too pale to see on white, so stars always sit on ink. */
	--star: #f5b400;
	--star-empty: rgb(255 255 255 / 0.24);
	--star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3 6.5 7.1.9-5.2 4.9 1.3 7-6.2-3.4-6.2 3.4 1.3-7-5.2-4.9 7.1-.9z'/%3E%3C/svg%3E");

	--font-body: Lato, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
	--font-heading: "Montserrat Variable", Montserrat, "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", sans-serif;

	--wrap: 1200px;
	--measure: 760px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(56px, 9vw, 112px);
	--radius: 4px;

	--strip-height: 40px;
	--header-height: 84px;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Base -------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	font-family: var(--font-heading);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
}

h2 {
	font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem);
}

h3 {
	font-size: 1.35rem;
}

h4 {
	font-size: 1.125rem;
}

p,
ul,
ol,
dl,
figure,
table,
blockquote {
	margin: 0 0 1.25em;
}

a {
	color: var(--deep-blue);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ink);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--blue);
	color: var(--white);
}

.icon {
	flex: none;
	width: 1.25em;
	height: 1.25em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	clip-path: none;
	background: var(--ink);
	color: var(--white);
}

/* 4. Layout helpers, buttons ------------------------------------------- */

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section);
}

.section--mist {
	background: var(--mist);
}

.section--blue {
	background: var(--blue);
	color: var(--white);
}

.section__head {
	max-width: 44rem;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.section__head > :last-child {
	margin-bottom: 0;
}

.section__head p {
	color: var(--slate);
	font-size: 1.2rem;
}

.section--blue .section__head p {
	color: var(--ink);
}

.section__foot {
	margin: clamp(32px, 5vw, 48px) 0 0;
}

/* A section whose content sits in the middle of the page, such as the team: its heading and closing link follow. */
.section--centred :is(.section__head, .section__foot) {
	margin-inline: auto;
	text-align: center;
}

.button,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	min-height: 52px;
	padding: 0.7em 1.5em;
	border: 2px solid var(--deep-blue);
	border-radius: var(--radius);
	background: var(--deep-blue);
	color: var(--white);
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.button:hover,
.wp-block-button__link:hover,
.wp-element-button:hover {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

.button .icon {
	transition: transform 0.25s var(--ease-out);
}

.button:hover .icon:last-child {
	transform: translateX(4px);
}

.button--quiet,
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--deep-blue);
}

.button--on-dark {
	border-color: var(--white);
	background: var(--white);
	color: var(--ink);
}

.button--on-dark:hover {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
}

.button--on-dark.button--quiet {
	background: transparent;
	color: var(--white);
}

/*
Pill links: several links to choose between, in a row that wraps. Used for
article topics, the pages of an area of law, the pages of a section, and any
list in a page or article that is nothing but links (inc/template-tags.php).
*/
.pill-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pill-links li {
	margin: 0;
}

/* 22px rounds a one-line pill completely and keeps a long name that wraps to two lines tidy. */
.pill-links a {
	display: block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: var(--white);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
}

.pill-links a:hover,
.pill-links a[aria-current] {
	border-color: var(--deep-blue);
	background: var(--deep-blue);
	color: var(--white);
}

.pill-links--before {
	margin-bottom: 40px;
}

.pill-links--after {
	margin-top: 40px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 650;
	text-decoration: none;
}

.text-link .icon {
	transition: transform 0.25s var(--ease-out);
}

.text-link:hover .icon {
	transform: translateX(4px);
}

/* 5. Header and main menu ---------------------------------------------- */

.notice-bar {
	margin: 0;
	padding: 10px var(--gutter);
	background: var(--ink);
	color: var(--white);
	font-size: 1rem;
	text-align: center;
}

.notice-bar a {
	color: inherit;
}

/* Sticks with the top strip scrolled out of view, so only the logo and menu stay. */
.site-header {
	position: sticky;
	z-index: 50;
	top: calc(-1 * var(--strip-height));
	background: var(--white);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgb(22 36 46 / 0.08);
}

.site-header__top {
	background: var(--mist);
	font-size: 0.9375rem;
}

.site-header__top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--strip-height);
}

.language-links {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: var(--slate);
}

.language-links ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.language-links a {
	display: block;
	padding: 6px 8px;
	color: var(--slate);
	text-decoration: none;
	white-space: nowrap;
}

.language-links a:hover,
.language-links a[aria-current] {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.site-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	color: var(--ink);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__phone .icon {
	color: var(--blue);
}

.site-header__phone-call {
	display: none;
}

@media (max-width: 419px) {
	.language-links > .icon {
		display: none;
	}

	.language-links ul {
		gap: 0;
		margin-left: -6px;
	}

	.language-links a {
		padding-inline: 6px;
	}

	.site-header__phone-number {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.site-header__phone-call {
		display: inline;
	}
}

.site-header__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-height);
}

.site-brand {
	display: block;
	flex: none;
	line-height: 0;
}

.logo {
	display: block;
	width: auto;
	height: 48px;
}

.logo__mark {
	fill: var(--blue);
}

.logo__word {
	fill: #414b54;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 14px;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: var(--white);
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 650;
	cursor: pointer;
}

.nav-toggle__icon {
	display: flex;
}

.nav-toggle__icon--close,
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
	display: flex;
}

.site-nav .menu,
.site-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--ink);
	text-decoration: none;
}

.sub-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: none;
	color: var(--slate);
	cursor: pointer;
}

.sub-menu-toggle .icon {
	transition: transform 0.25s var(--ease-out);
}

.sub-menu-toggle[aria-expanded="true"] .icon {
	transform: rotate(180deg);
}

.site-nav__search {
	display: flex;
}

.site-nav__search input {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	border: 2px solid var(--line);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--white);
	font-size: 1rem;
}

.site-nav__search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--deep-blue);
	color: var(--white);
	cursor: pointer;
}

.read-progress {
	position: absolute;
	right: 0;
	bottom: -3px;
	left: 0;
	height: 3px;
	background: var(--blue);
	transform: scaleX(0);
	transform-origin: left;
}

/* Small screens: the menu is a panel under the header, opened by the Menu button. */
@media (max-width: 1039px) {
	:root {
		--header-height: 68px;
	}

	.logo {
		height: 38px;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100dvh - var(--header-height));
		padding: 8px var(--gutter) 32px;
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 1px solid var(--line);
		background: var(--white);
		box-shadow: 0 24px 32px rgb(22 36 46 / 0.12);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav .menu-item {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 56px;
		border-bottom: 1px solid var(--line);
	}

	.site-nav .menu-item > a {
		display: flex;
		align-items: center;
		min-height: 56px;
		padding: 8px 0;
		font-family: var(--font-heading);
		font-weight: 650;
	}

	.site-nav .sub-menu-toggle {
		min-height: 56px;
		border-left: 1px solid var(--line);
	}

	.site-nav .sub-menu {
		display: none;
		grid-column: 1 / -1;
		padding-left: 16px;
		border-top: 1px solid var(--line);
	}

	.site-nav .menu-item.is-open > .sub-menu {
		display: block;
	}

	.site-nav .sub-menu .menu-item:last-child {
		border-bottom: 0;
	}

	.site-nav .sub-menu .menu-item > a {
		font-family: var(--font-body);
		font-weight: 400;
	}

	.site-nav .sub-menu .menu-item-has-children > a {
		font-weight: 700;
	}

	.site-nav__search {
		margin-top: 24px;
	}
}

/* Wide screens: a row of links; the pages under a link drop down from it. */
@media (min-width: 1040px) {
	.nav-toggle {
		display: none;
	}

	.site-header__main {
		position: relative;
	}

	.site-nav {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.site-nav .menu {
		display: flex;
		align-items: center;
	}

	.site-nav .menu > .menu-item {
		position: relative;
		display: flex;
		align-items: center;
	}

	.site-nav .menu > .menu-item--wide {
		position: static;
	}

	.site-nav .menu > .menu-item > a {
		position: relative;
		display: flex;
		align-items: center;
		height: var(--header-height);
		padding: 0 12px;
		font-family: var(--font-heading);
		font-size: 0.9375rem;
		font-weight: 650;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		white-space: nowrap;
	}

	.site-nav .menu > .menu-item-has-children > a {
		padding-right: 2px;
	}

	.site-nav .menu > .menu-item > a::after {
		content: "";
		position: absolute;
		right: 12px;
		bottom: 22px;
		left: 12px;
		height: 2px;
		background: var(--blue);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s var(--ease-out);
	}

	.site-nav .menu > .menu-item-has-children > a::after {
		right: 2px;
	}

	.site-nav .menu > .menu-item > a:hover::after,
	.site-nav .menu > .current-menu-item > a::after,
	.site-nav .menu > .current-menu-ancestor > a::after {
		transform: scaleX(1);
	}

	.site-nav .menu > .menu-item > .sub-menu-toggle {
		width: 28px;
		height: 44px;
		margin-right: 4px;
	}

	.site-nav .sub-menu {
		position: absolute;
		z-index: 2;
		top: 100%;
		left: 0;
		visibility: hidden;
		min-width: 280px;
		padding: 12px;
		border: 1px solid var(--line);
		border-top: 3px solid var(--blue);
		background: var(--white);
		box-shadow: 0 24px 40px rgb(22 36 46 / 0.12);
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.18s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
	}

	.site-nav .menu > .menu-item:last-child > .sub-menu,
	.site-nav .menu > .menu-item:nth-last-child(2) > .sub-menu {
		right: 0;
		left: auto;
	}

	.site-nav .menu > .menu-item:hover > .sub-menu,
	.site-nav .menu > .menu-item:focus-within > .sub-menu,
	.site-nav .menu > .menu-item.is-open > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition-delay: 0s;
	}

	/* However long a list grows, its last link can be reached on a short screen. */
	.site-nav .menu > .menu-item > .sub-menu {
		max-height: calc(100vh - var(--strip-height) - var(--header-height) - 16px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	/* A long list, such as the success stories, takes two columns so it fits a small laptop without scrolling. */
	.site-nav .menu > .menu-item:not(.menu-item--wide) > .sub-menu:has(> .menu-item:nth-child(9)) {
		width: 600px;
		columns: 2;
		column-gap: 8px;
	}

	.site-nav .menu > .menu-item:not(.menu-item--wide) > .sub-menu > .menu-item {
		break-inside: avoid;
	}

	/* From the middle of the menu onwards a two-column list opens leftwards, to stay on the screen. */
	.site-nav .menu > .menu-item:nth-child(n + 4) > .sub-menu:has(> .menu-item:nth-child(9)) {
		right: 0;
		left: auto;
	}

	/* Escape closes a menu that hovering or focus would otherwise hold open. */
	.site-nav .menu > .menu-item.is-dismissed > .sub-menu {
		visibility: hidden;
		opacity: 0;
	}

	.site-nav .sub-menu a {
		display: block;
		padding: 8px 12px;
		border-radius: var(--radius);
		font-size: 1rem;
		line-height: 1.35;
	}

	.site-nav .sub-menu a:hover,
	.site-nav .sub-menu .current-menu-item > a {
		background: var(--mist);
		color: var(--deep-blue);
	}

	/*
	 * Services: every area of law and the pages under it. Each group spans one
	 * grid row per link (--rows, set in inc/menus.php), so short groups stack
	 * beside long ones and no list is cut in two.
	 */
	.site-nav .menu-item--wide > .sub-menu {
		right: var(--gutter);
		left: var(--gutter);
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-auto-rows: minmax(2.1rem, auto);
		column-gap: 16px;
		padding: 28px 20px 16px;
	}

	.menu-item--wide > .sub-menu > .menu-item {
		grid-row: span var(--rows, 1);
		padding-bottom: 12px;
	}

	.menu-item--wide > .sub-menu > .menu-item--long {
		grid-column: span 2;
	}

	.menu-item--wide .menu-item--long > .sub-menu {
		columns: 2;
		column-gap: 16px;
	}

	.menu-item--wide .sub-menu .sub-menu {
		position: static;
		visibility: inherit;
		min-width: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		transform: none;
		transition: none;
	}

	.menu-item--wide .sub-menu .sub-menu .menu-item {
		break-inside: avoid;
	}

	.menu-item--wide > .sub-menu > .menu-item > a {
		color: var(--deep-blue);
		font-family: var(--font-heading);
		font-size: 0.9375rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
	}

	.menu-item--wide .sub-menu .sub-menu a {
		padding-block: 6px;
		color: var(--ink);
	}

	.menu-item--wide .sub-menu .sub-menu-toggle {
		display: none;
	}

	.site-nav__search {
		position: relative;
	}

	.site-nav__search input {
		position: absolute;
		top: 0;
		right: 44px;
		width: 0;
		height: 44px;
		padding: 0;
		border-width: 0;
		opacity: 0;
		transition: width 0.3s var(--ease-out), opacity 0.2s;
	}

	.site-nav__search:focus-within input {
		width: 280px;
		padding: 0 14px;
		border-width: 2px;
		opacity: 1;
	}

	.site-nav__search button {
		width: 44px;
		height: 44px;
		border-radius: var(--radius);
		background: none;
		color: var(--ink);
	}

	.site-nav__search:focus-within button {
		border-radius: 0 var(--radius) var(--radius) 0;
		background: var(--deep-blue);
		color: var(--white);
	}
}

/* Small laptops: the full menu still fits beside the logo, a little tighter. */
@media (min-width: 1040px) and (max-width: 1199px) {
	.logo {
		height: 40px;
	}

	.site-nav {
		gap: 0;
	}

	.site-nav .menu > .menu-item > a {
		padding-inline: 6px;
		font-size: 0.875rem;
		letter-spacing: 0.04em;
	}

	.site-nav .menu > .menu-item-has-children > a {
		padding-right: 2px;
	}

	.site-nav .menu > .menu-item > a::after {
		right: 6px;
		left: 6px;
	}

	.site-nav .menu > .menu-item-has-children > a::after {
		right: 2px;
	}
}

/* 6. Home page --------------------------------------------------------- */

/*
The slides. A photograph on the left, the words on the right, and between them
the Σ: the MK mark turned a quarter-turn, as the firm's home page has shown it
since 2015.

--u is one unit of the mark's own drawing (520 units tall) at the size it is
shown, so the photograph's edge and the text's margins follow the Σ exactly:
its point is 168 units in, the inside of the point 230, the end of its bars 336.
*/
.hero {
	--hero-h: clamp(220px, 56vw, 460px);
	--u: calc(var(--hero-h) / 520);

	/* From the Σ's left edge to the right edge of the page. On small screens the Σ runs off the page where the 2015 artwork stopped, at 240 units. */
	--sigma-reach: calc(var(--u) * 240);

	position: relative;
	overflow: hidden;
	background: var(--white);
}

.hero__media {
	position: relative;
	width: calc(100% - var(--sigma-reach) + var(--u) * 168);
	height: var(--hero-h);
	overflow: hidden;
	background: var(--mist);
	clip-path: polygon(0 0, calc(100% - var(--u) * 168) 0, 100% 50%, calc(100% - var(--u) * 168) 100%, 0 100%);
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.hero__image.is-current {
	opacity: 1;
}

.hero__sigma {
	position: absolute;
	top: 0;
	left: calc(100% - var(--sigma-reach));
	width: auto;
	max-width: none;
	height: var(--hero-h);
	color: var(--blue);
	pointer-events: none;
}

/*
The slide buttons belong to the photograph: a dark glass pill rather than a
solid box. It is dark enough for its white marks to read over a pale sky.
*/
.hero__controls {
	position: absolute;
	bottom: 16px;
	left: var(--gutter);
	display: flex;
	align-items: center;
	padding: 2px 4px;
	border-radius: 999px;
	background: rgb(22 36 46 / 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--white);
}

.hero__controls[hidden] {
	display: none;
}

.hero__control {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.18s;
}

.hero__control:hover {
	background: rgb(255 255 255 / 0.2);
}

.hero__control .icon {
	width: 18px;
	height: 18px;
	stroke-width: 1.75;
}

.hero__control .icon + .icon,
.hero__control.is-paused .icon:first-child {
	display: none;
}

.hero__control.is-paused .icon + .icon {
	display: block;
}

.hero__count {
	padding: 0 12px 0 6px;
	font-family: var(--font-heading);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.hero__body {
	padding: clamp(28px, 6vw, 48px) var(--gutter) clamp(40px, 7vw, 64px);
}

/*
Every slide's words share one place, which is as tall as the longest of them,
so nothing below moves as they change. Shorter words rest on the sentence.
*/
.hero__titles {
	display: grid;
	margin-bottom: 20px;
}

/* The firm's line has always been set in spaced capitals. */
.hero__title {
	grid-area: 1 / 1;
	align-self: end;
	margin: 0;
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.2rem);
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	text-wrap: balance;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0s 0.3s;
}

.hero__title.is-current {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.hero__title span {
	display: inline-block;
}

.hero__title a {
	color: inherit;
	text-decoration: none;
}

.hero__title a:hover {
	color: var(--deep-blue);
}

.hero__text {
	max-width: 32em;
	color: var(--slate);
	font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block: 24px 20px;
}

@media (min-width: 1100px) {
	.hero {
		/* The slides fill the first screen, as the firm's slider always has. */
		--hero-h: clamp(660px, calc(100vh - var(--header-height) - var(--strip-height)), 780px);
		--hero-words: clamp(400px, 37vw, 500px);
		--hero-edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
		--hero-inset: calc(var(--u) * 230 + 40px);
		--sigma-reach: calc(var(--hero-inset) + var(--hero-words) + var(--hero-edge));

		min-height: var(--hero-h);
	}

	.hero__media {
		position: absolute;
		top: 0;
		left: 0;
	}

	.hero__controls {
		bottom: 24px;
		left: 24px;
	}

	/* The words sit inside the Σ: clear of the inside of its point, and of the bars above and below. */
	.hero__body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: var(--hero-h);
		margin-left: calc(100% - var(--sigma-reach));
		padding: calc(var(--u) * 60 + 24px) var(--hero-edge) calc(var(--u) * 60 + 24px) var(--hero-inset);
	}

	.hero__title {
		font-size: clamp(1.75rem, 0.5rem + 2.4vw, 2.75rem);
	}

	.hero__text {
		font-size: clamp(1.0625rem, 0.8rem + 0.4vw, 1.2rem);
	}
}

.statement {
	position: relative;
	overflow: hidden;
}

.statement__text {
	max-width: 40rem;
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
	line-height: 1.7;
}

.statement__text p {
	margin-bottom: 1.2em;
}

.statement__text .wp-block-buttons {
	margin-top: 2.4em;
}

/* The Σ runs off the right-hand edge of the page, as on the firm's 2015 home page. */
.statement__sigma {
	display: block;
	width: auto;
	height: 220px;
	margin: 48px 0 0 auto;
	color: var(--blue);
}

@media (min-width: 900px) {
	.statement__sigma {
		position: absolute;
		top: 50%;
		right: 0;

		/* As tall as the section allows, but never so wide that it reaches the text. The drawing is 240 wide by 520 tall. */
		height: min(82%, calc((100vw - max(var(--gutter), (100vw - var(--wrap)) / 2) - 40rem - 56px) * 520 / 240));
		margin: 0;
		transform: translateY(-50%);
	}
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	color: var(--white);
	text-align: center;
	text-decoration: none;
}

.service:hover {
	color: var(--white);
}

.service__disc {
	display: grid;
	place-items: center;
	width: clamp(104px, 22vw, 148px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--white);
	color: var(--deep-blue);
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.service:hover .service__disc {
	transform: translateY(-6px);
	box-shadow: 0 18px 28px rgb(22 36 46 / 0.22);
}

.service-icon {
	width: 46%;
	height: auto;
}

.service__name {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline transparent 2px;
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.2s;
}

.service:hover .service__name,
.service:focus-visible .service__name {
	text-decoration-color: currentColor;
}

.section--blue :focus-visible {
	outline-color: var(--white);
}

@media (min-width: 700px) {
	.service-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 56px 24px;
	}
}

/* However many areas of law the Services menu holds, they share one row. */
@media (min-width: 1100px) {
	.service-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}
}

.team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 40px 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.team-grid > li {
	flex: 0 1 276px;
}

.person {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.person__photo {
	position: relative;
	display: grid;
	place-items: center;
	margin-bottom: 16px;
	overflow: hidden;
	aspect-ratio: 16 / 19;
	background: var(--mist);
	color: var(--blue);
}

.person__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.6s var(--ease-out);
}

.person:hover .person__photo img {
	transform: scale(1.03);
}

.person__photo .mark {
	width: 34%;
	opacity: 0.35;
}

.person__name {
	margin: 0;
	font-size: 1.3rem;
}

.person:hover .person__name {
	color: var(--deep-blue);
}

.person__role {
	margin: 2px 0 0;
	color: var(--slate);
	font-size: 1.0625rem;
}

/* Reviews: the Google score in large figures, and what clients wrote. */

.reviews {
	background: var(--ink);
	color: var(--white);
}

.reviews :focus-visible {
	outline-color: var(--white);
}

.reviews__inner {
	display: grid;
	gap: 48px;
}

.reviews__inner > * {
	min-width: 0;
}

.reviews__summary h2 {
	margin-bottom: 32px;
}

.reviews__actions {
	margin: 36px 0 0;
}

.reviews__list {
	display: grid;
	gap: 20px;
	align-content: start;
}

@media (min-width: 640px) {
	.reviews__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1000px) {
	.reviews__inner {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 72px;
		align-items: start;
	}

	.reviews__summary {
		position: sticky;
		top: calc(var(--header-height) + 40px);
	}
}

.reviews--banner {
	padding-block: clamp(40px, 6vw, 72px);
}

.rating {
	display: grid;
	justify-items: start;
}

.rating p {
	margin: 0;
}

.rating__source {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 650;
}

.google-disc {
	display: grid;
	flex: none;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--white);
}

.google-mark {
	width: 1.125rem;
	height: 1.125rem;
}

.rating__score {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding-top: 12px;
}

.rating__number {
	font-family: var(--font-heading);
	font-size: clamp(5.5rem, 3.4rem + 9vw, 9.5rem);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 0.95;
	letter-spacing: -0.04em;
}

.rating__scale {
	color: var(--on-ink-soft);
	font-family: var(--font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	white-space: nowrap;
}

.rating__stars {
	padding-top: 12px;
	font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem);
	line-height: 1;
}

.rating__count {
	padding-top: 16px;
	color: var(--on-ink-soft);
	font-size: 1.2rem;
}

.rating__action {
	padding-top: 32px;
}

/* The score on one line. Always on ink: the gold of the stars needs the dark behind it. */
.rating-badge {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	width: fit-content;
	max-width: 100%;
	margin-top: 28px;
	padding: 12px 18px 12px 12px;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--white);
	text-decoration: none;
	transition: background-color 0.18s;
}

.rating-badge:hover {
	background: var(--ink-raised);
	color: var(--white);
}

.rating-badge__score {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: -0.02em;
}

.rating-badge .stars {
	font-size: 1.5rem;
}

.rating-badge__count {
	color: var(--on-ink-soft);
	font-size: 1.0625rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.25em;
}

@media (min-width: 900px) {
	.reviews--banner .rating {
		grid-template-columns: auto auto 1fr;
		grid-template-rows: auto auto auto;
		column-gap: 56px;
		align-items: center;
	}

	.reviews--banner .rating__source {
		grid-column: 2;
		align-self: end;
	}

	.reviews--banner .rating__score {
		grid-row: 1 / -1;
		padding-top: 0;
	}

	.reviews--banner .rating__stars,
	.reviews--banner .rating__count {
		grid-column: 2;
	}

	.reviews--banner .rating__count {
		align-self: start;
	}

	.reviews--banner .rating__action {
		grid-row: 1 / -1;
		grid-column: 3;
		justify-self: end;
		padding-top: 0;
	}
}

/*
Five stars, filled from the left as far as --rating. One element: the star shape
is a mask and the fill is a two-colour background behind it.
*/
@property --stars-shown {
	syntax: "<number>";
	inherits: false;
	initial-value: 0;
}

.stars {
	--stars-shown: var(--rating);

	display: inline-block;
	width: 5em;
	height: 1em;
	vertical-align: middle;
	background: linear-gradient(90deg, var(--star) calc(var(--stars-shown) / 5 * 100%), var(--star-empty) 0);
	-webkit-mask: var(--star-shape) 0 0 / 1em 1em repeat-x;
	mask: var(--star-shape) 0 0 / 1em 1em repeat-x;
}

.review {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--white);
	color: var(--ink);
}

.review__rating {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* Gold stars need a dark ground to be seen clearly, so on a white card they sit on an ink strip. */
.review__stars {
	display: inline-flex;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--ink);
	font-size: 1.125rem;
	line-height: 1;
}

.review .google-disc {
	width: 1.75rem;
	height: 1.75rem;
	border: 1px solid var(--line);
}

.review .google-mark {
	width: 1rem;
	height: 1rem;
}

.review blockquote {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.review blockquote p {
	margin: 0 0 0.9em;
}

.review blockquote > :last-child {
	margin-bottom: 0;
}

.review figcaption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 2px 16px;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.review__name {
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 650;
}

.review time {
	color: var(--slate);
	font-size: 0.9375rem;
}

.reviews .review {
	border-color: rgb(255 255 255 / 0.16);
	background: var(--ink-raised);
	color: var(--white);
}

.reviews .review__stars {
	padding: 0;
	background: none;
	font-size: 1.375rem;
}

.reviews .review .google-disc {
	border: 0;
}

.reviews .review figcaption {
	border-color: rgb(255 255 255 / 0.16);
}

.reviews .review time {
	color: var(--on-ink-soft);
}

.review-wall {
	columns: 3 320px;
	column-gap: 24px;
}

.review-wall .review {
	margin-bottom: 24px;
	break-inside: avoid;
}

.cta {
	position: relative;
	overflow: hidden;
	background: var(--ink);
	color: var(--white);
}

.cta__inner {
	position: relative;
	display: grid;
	gap: 28px;
	padding-block: clamp(48px, 7vw, 80px);
}

.cta h2 {
	margin-bottom: 0.4em;
}

.cta p {
	max-width: 36rem;
	margin: 0;
	color: var(--on-ink-soft);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cta :focus-visible {
	outline-color: var(--white);
}

.cta__mark {
	position: absolute;
	top: 50%;
	right: -40px;
	width: 300px;
	color: var(--white);
	opacity: 0.05;
	transform: translateY(-50%);
	pointer-events: none;
}

@media (min-width: 900px) {
	.cta__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 48px;
	}
}

/* 7. Page headers, pages, section links -------------------------------- */

.page-header {
	padding-block: clamp(28px, 5vw, 56px) clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--line);
	background: var(--mist);
}

.page-header h1 {
	max-width: 22em;
	margin: 0;
}

.page-header__intro {
	max-width: 42rem;
	margin: 16px 0 0;
	color: var(--slate);
	font-size: 1.2rem;
}

.page-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 16px 0 0;
	padding: 0;
	color: var(--slate);
	font-size: 1rem;
	list-style: none;
}

.page-header__meta li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-header__meta .icon {
	color: var(--blue);
}

.breadcrumb {
	margin-bottom: 16px;
	font-size: 0.9375rem;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-inline: 10px;
	color: var(--slate);
}

.breadcrumb a {
	display: inline-block;
	padding-block: 4px;
	color: var(--slate);
}

.breadcrumb a:hover {
	color: var(--ink);
}

.page-body {
	display: grid;
	gap: 48px;
	padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.page-body > * {
	min-width: 0;
}

.entry {
	max-width: var(--measure);
}

.page-body--centred .entry {
	margin-inline: auto;
	width: 100%;
}

@media (min-width: 1000px) {
	.page-body--with-aside {
		grid-template-columns: minmax(0, var(--measure)) minmax(240px, 320px);
		justify-content: space-between;
		gap: 64px;
	}
}

.section-links {
	align-self: start;
	padding: 24px;
	border-top: 3px solid var(--blue);
	background: var(--mist);
}

.section-links h2 {
	margin-bottom: 12px;
	font-size: 1.125rem;
}

.section-links h2 a {
	color: var(--ink);
	text-decoration: none;
}

.section-links h2 a:hover {
	text-decoration: underline;
}

.section-links__contact {
	margin: 20px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 1.0625rem;
}

.section-links__contact a {
	font-weight: 700;
}

/* A team member's page: photograph and details beside the name. */
.profile-header__inner {
	display: grid;
	gap: 28px;
	align-items: end;
}

.profile-header__photo {
	width: min(100%, 300px);
	overflow: hidden;
	aspect-ratio: 16 / 19;
	background: var(--white);
}

.profile-header__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.profile-header__role {
	margin: 8px 0 0;
	color: var(--deep-blue);
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 600;
}

@media (min-width: 760px) {
	.profile-header__inner {
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 48px;
	}
}

/* Services and success stories: the pages under this one, as a list to choose from. */
.index-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 0 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.index-list__item {
	border-top: 1px solid var(--line);
}

.index-list__link {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.index-list__link .icon {
	margin-top: 0.1em;
	color: var(--blue);
	transition: transform 0.25s var(--ease-out);
}

.index-list__link:hover {
	color: var(--deep-blue);
}

.index-list__link:hover .icon {
	transform: translateX(4px);
}

.practice {
	display: grid;
	gap: 16px 40px;
	padding-block: 40px;
	border-top: 1px solid var(--line);
}

.practice:first-child {
	padding-top: 0;
	border-top: 0;
}

.practice__head {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.practice__head .service-icon {
	flex: none;
	width: 56px;
	color: var(--blue);
}

.practice__head h2 {
	margin: 0 0 8px;
	font-size: 1.6rem;
}

.practice__head h2 a {
	color: var(--ink);
	text-decoration: none;
}

.practice__head h2 a:hover {
	color: var(--deep-blue);
	text-decoration: underline;
}

.practice__head p {
	margin: 0;
	color: var(--slate);
}

@media (min-width: 900px) {
	.practice {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}

	/* Level with the area's name rather than the top of its drawing. */
	.practice .pill-links {
		align-self: start;
		margin-top: 4px;
	}
}

.contact-layout {
	display: grid;
	gap: 48px;
	padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.contact-layout > * {
	min-width: 0;
}

@media (min-width: 960px) {
	.contact-layout {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: 80px;
	}
}

.contact-details {
	align-self: start;
}

.contact-details h2 {
	font-size: 1.5rem;
}

.contact-list {
	display: grid;
	gap: 16px;
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.contact-list .icon {
	margin-top: 0.2em;
	color: var(--blue);
}

.not-found {
	padding-block: var(--section);
	text-align: center;
}

.not-found .mark {
	width: 88px;
	margin: 0 auto 32px;
	color: var(--blue);
}

.not-found p {
	max-width: 34rem;
	margin-inline: auto;
	color: var(--slate);
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.search-form {
	display: flex;
	max-width: 34rem;
}

.not-found .search-form {
	margin: 32px auto;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.search-form input[type="search"] {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 2px solid var(--slate);
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	background: var(--white);
}

.search-form .button {
	border-radius: 0 var(--radius) var(--radius) 0;
}

/* 8. Article lists and single articles ---------------------------------- */

.search-empty {
	margin-top: 32px;
}

.article-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.article-list--results {
	margin-top: 40px;
}

.article-card {
	display: grid;
	gap: 6px;
	padding-block: 28px;
	border-top: 1px solid var(--line);
}

.article-list > li:first-child .article-card {
	padding-top: 0;
	border-top: 0;
}

.article-card__meta {
	margin: 0;
	color: var(--slate);
	font-size: 1rem;
}

.article-card__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}

.article-card__title a {
	color: var(--ink);
	text-decoration: none;
}

.article-card__title a:hover {
	color: var(--deep-blue);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.article-card__excerpt {
	max-width: 46rem;
	margin: 4px 0 0;
	color: var(--slate);
}

/* Three across on the home page. */
@media (min-width: 800px) {
	.article-list--row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}

	.article-list--row .article-card,
	.article-list--row > li:first-child .article-card {
		padding: 24px 0 0;
		border-top: 3px solid var(--blue);
	}
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-family: var(--font-heading);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--deep-blue);
	color: var(--deep-blue);
}

.pagination .page-numbers.current {
	border-color: var(--deep-blue);
	background: var(--deep-blue);
	color: var(--white);
}

.pagination .page-numbers.dots {
	border: 0;
}

.entry-image {
	margin: 0 0 40px;
}

.entry-image img {
	width: 100%;
}

.post-nav {
	display: grid;
	gap: 24px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.post-nav a {
	display: block;
	color: var(--ink);
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.post-nav a:hover {
	color: var(--deep-blue);
	text-decoration: underline;
}

.post-nav span {
	display: block;
	margin-bottom: 4px;
	color: var(--slate);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
}

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

	.post-nav__next {
		grid-column: 2;
		text-align: right;
	}
}

/* 9. Written content (blocks) ------------------------------------------ */

/*
 * .entry-content wraps written content on the website; .is-root-container is the
 * same content in the block editor, which loads this stylesheet too
 * (add_editor_style in functions.php). What is typed looks like what is published.
 */

:is(.entry-content, .is-root-container) > :first-child {
	margin-top: 0;
}

:is(.entry-content, .is-root-container) > :last-child {
	margin-bottom: 0;
}

/* A heading starts below any photograph floated beside the text before it. */
:is(.entry-content, .is-root-container) :is(h2, h3, h4) {
	clear: both;
}

:is(.entry-content, .is-root-container) h2 {
	margin-top: 1.8em;
	font-size: clamp(1.45rem, 1.25rem + 0.9vw, 1.85rem);
}

:is(.entry-content, .is-root-container) h3 {
	margin-top: 1.6em;
}

:is(.entry-content, .is-root-container) h4 {
	margin-top: 1.4em;
}

:is(.entry-content, .is-root-container) ul,
:is(.entry-content, .is-root-container) ol {
	padding-left: 1.4em;
}

:is(.entry-content, .is-root-container) li {
	margin-bottom: 0.4em;
}

:is(.entry-content, .is-root-container) li > ul,
:is(.entry-content, .is-root-container) li > ol {
	margin: 0.4em 0 0;
}

:is(.entry-content, .is-root-container) ul > li::marker {
	color: var(--blue);
}

:is(.entry-content, .is-root-container) ol > li::marker {
	color: var(--deep-blue);
	font-weight: 700;
}

/* A list of nothing but links, shown as pill links. Stated again here because the list rules above are more specific. */
.entry-content ul.pill-links {
	margin-bottom: 1.25em;
	padding-left: 0;
}

.entry-content ul.pill-links > li {
	margin-bottom: 0;
}

:is(.entry-content, .is-root-container) .wp-block-image {
	margin-block: 2em;
}

:is(.entry-content, .is-root-container) .wp-block-image img {
	border-radius: 2px;
}

:is(.entry-content, .is-root-container) figcaption,
.wp-element-caption {
	margin-top: 10px;
	color: var(--slate);
	font-size: 1rem;
	text-align: left;
}

:is(.entry-content, .is-root-container) .alignleft,
:is(.entry-content, .is-root-container) .alignright {
	max-width: 50%;
	margin-block: 0.4em 1em;
}

:is(.entry-content, .is-root-container) .alignleft {
	float: left;
	margin-right: 2em;
}

:is(.entry-content, .is-root-container) .alignright {
	float: right;
	margin-left: 2em;
}

:is(.entry-content, .is-root-container) .aligncenter {
	margin-inline: auto;
}

:is(.entry-content, .is-root-container) .aligncenter img {
	margin-inline: auto;
}

:is(.entry-content, .is-root-container)::after {
	content: "";
	display: block;
	clear: both;
}

@media (max-width: 599px) {
	:is(.entry-content, .is-root-container) .alignleft,
	:is(.entry-content, .is-root-container) .alignright {
		float: none;
		max-width: 100%;
		margin-inline: 0;
	}
}

:is(.entry-content, .is-root-container) .wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--blue);
	font-size: 1.2rem;
}

:is(.entry-content, .is-root-container) .wp-block-quote cite {
	display: block;
	margin-top: 12px;
	color: var(--slate);
	font-size: 1rem;
	font-style: normal;
}

:is(.entry-content, .is-root-container) .wp-block-separator {
	width: 100%;
	max-width: none;
	height: 0;
	margin-block: 2.5em;
	border: 0;
	border-top: 1px solid var(--line);
}

:is(.entry-content, .is-root-container) .wp-block-table {
	margin-inline: 0;
	overflow-x: auto;
}

:is(.entry-content, .is-root-container) table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 1rem;
}

:is(.entry-content, .is-root-container) th,
:is(.entry-content, .is-root-container) td {
	padding: 12px 14px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

:is(.entry-content, .is-root-container) thead th {
	background: var(--mist);
	font-family: var(--font-heading);
	font-weight: 650;
}

:is(.entry-content, .is-root-container) .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-block: 2em;
}

:is(.entry-content, .is-root-container) .wp-block-gallery {
	margin-block: 2em;
}

/* 10. Contact form ------------------------------------------------------ */

.form {
	display: grid;
	gap: 24px;
}

.form__intro {
	margin: 0;
	color: var(--slate);
}

.field {
	display: grid;
	gap: 6px;
}

.field label {
	font-family: var(--font-heading);
	font-size: 1.0625rem;
	font-weight: 650;
}

.field__optional {
	color: var(--slate);
	font-family: var(--font-body);
	font-weight: 400;
}

.field__help {
	margin: 0;
	color: var(--slate);
	font-size: 1rem;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 54px;
	padding: 12px 14px;
	border: 2px solid #8996a0;
	border-radius: var(--radius);
	background: var(--white);
	font-size: 1.125rem;
	transition: border-color 0.15s;
}

.field textarea {
	min-height: 180px;
	resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
	border-color: var(--ink);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 0;
	border-color: var(--ink);
}

.field [aria-invalid="true"] {
	border-color: var(--error);
}

.field__error {
	margin: 0;
	color: var(--error);
	font-size: 1rem;
	font-weight: 700;
}

/*
Documents. Without the script the file box is the browser's own, styled like
the other answers, and the drawing, the button and the hint stay hidden.
assets/js/forms.js adds .is-enhanced, which turns the box into a place to drop
files; the real file box is then hidden from sight but still takes the keyboard.
*/
.dropzone > .icon,
.dropzone__choose,
.dropzone__hint {
	display: none;
}

.dropzone.is-enhanced {
	display: grid;
	justify-items: center;
	gap: 12px;
	padding: 28px 20px;
	border: 2px dashed #8996a0;
	border-radius: var(--radius);
	background: var(--mist);
	text-align: center;
	transition: border-color 0.15s, background-color 0.15s;
}

.dropzone.is-enhanced > .icon {
	display: block;
	width: 32px;
	height: 32px;
	color: var(--deep-blue);
}

.dropzone.is-enhanced .dropzone__choose {
	display: inline-flex;
	background: var(--white);
}

.dropzone.is-enhanced .dropzone__choose:hover {
	background: var(--ink);
}

.dropzone.is-enhanced .dropzone__hint {
	display: block;
	margin: 0;
	color: var(--slate);
	font-size: 1rem;
}

.dropzone.is-enhanced input {
	position: absolute;
	width: 1px;
	height: 1px;
	min-height: 0;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
}

.dropzone.is-enhanced:focus-within {
	outline: 3px solid var(--blue);
	border-color: var(--ink);
}

.dropzone.is-enhanced:has([aria-invalid="true"]) {
	border-color: var(--error);
}

.dropzone.is-over {
	border-style: solid;
	border-color: var(--deep-blue);
	background: var(--white);
}

.documents {
	display: grid;
	gap: 8px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.documents:empty,
.documents__total:empty {
	display: none;
}

.document {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 4px 16px;
	padding: 4px 4px 4px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.document__name {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.document__size {
	color: var(--slate);
	font-size: 1rem;
	white-space: nowrap;
}

.document__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: var(--radius);
	background: none;
	color: var(--deep-blue);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.document__remove:hover {
	background: var(--mist);
	color: var(--ink);
}

.documents__total {
	margin: 0;
	color: var(--slate);
	font-size: 1rem;
}

/* On a phone a long file name gets the full width, with its size and Remove underneath. */
@media (max-width: 480px) {
	.document {
		grid-template-columns: minmax(0, 1fr) auto;
		padding-left: 14px;
	}

	.document__name {
		grid-column: 1 / -1;
		padding-top: 10px;
	}
}

/* Nothing can be dragged on a touch screen. */
@media (pointer: coarse) {
	.dropzone.is-enhanced .dropzone__hint {
		display: none;
	}
}

/* The trap for bots: people never see or reach it. */
.field--trap {
	position: absolute;
	left: -9999px;
}

.form__status {
	margin: 0;
	padding: 16px 20px;
	border-left: 4px solid var(--error);
	background: #fbeeee;
	color: var(--error);
	font-weight: 700;
}

.form__status:empty {
	display: none;
}

.form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.form__submit .button[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.form__privacy {
	margin: 0;
	color: var(--slate);
	font-size: 1rem;
}

/* 11. Footer ------------------------------------------------------------ */

.site-footer {
	padding-top: clamp(48px, 7vw, 80px);
	background: var(--ink);
	color: var(--on-ink-soft);
	font-size: 1.0625rem;
}

.site-footer a {
	color: var(--white);
	text-decoration-color: rgb(255 255 255 / 0.4);
}

.site-footer a:hover {
	text-decoration-color: currentColor;
}

.site-footer :focus-visible {
	outline-color: var(--white);
}

.site-footer h2 {
	margin-bottom: 16px;
	color: var(--white);
	font-size: 1rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer__grid {
	display: grid;
	gap: 40px;
}

.site-footer__brand {
	display: inline-block;
	margin-bottom: 20px;
	line-height: 0;
}

.site-footer__brand .logo {
	height: 44px;
}

.site-footer .logo__mark,
.site-footer .logo__word {
	fill: var(--white);
}

.site-footer .contact-list {
	gap: 12px;
}

.footer-menu,
.footer-articles {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-articles {
	gap: 16px;
}

.footer-articles a {
	display: block;
	line-height: 1.35;
}

.footer-articles time {
	display: block;
	margin-top: 2px;
	font-size: 0.9375rem;
}

.social-links {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 50%;
	transition: background-color 0.2s, border-color 0.2s;
}

.social-links a:hover {
	border-color: var(--blue);
	background: var(--blue);
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 32px;
	margin-top: clamp(40px, 6vw, 64px);
	padding-block: 24px;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: 1rem;
}

.site-footer__base p {
	margin: 0;
}

@media (min-width: 700px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1040px) {
	.site-footer__grid {
		grid-template-columns: 1.1fr 1.2fr 0.8fr 1.2fr;
		gap: 48px;
	}
}

/* 12. Motion ------------------------------------------------------------ */

/*
html.motion is set before first paint (functions.php) only for readers who have
not asked for reduced motion. mklaw.js adds .is-revealed as a block scrolls in.
Without either, everything below is simply visible.
*/

.motion [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
	transition-delay: calc(var(--reveal-order, 0) * 90ms);
}

.motion [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}

/* The mark assembles: roof down, arms in from each side, stem and base rising. */
.motion .logo[data-logo] path[class^="mark__"],
.motion [data-assemble] path {
	transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

.motion .logo[data-logo]:not(.is-assembled) path[class^="mark__"],
.motion [data-assemble]:not(.is-revealed) path {
	opacity: 0;
}

.motion .logo[data-logo]:not(.is-assembled) .mark__roof,
.motion [data-assemble]:not(.is-revealed) .mark__roof {
	transform: translateY(-90px);
}

.motion .logo[data-logo]:not(.is-assembled) .mark__arm-left,
.motion [data-assemble]:not(.is-revealed) .mark__arm-left {
	transform: translateX(-90px);
}

.motion .logo[data-logo]:not(.is-assembled) .mark__arm-right,
.motion [data-assemble]:not(.is-revealed) .mark__arm-right {
	transform: translateX(90px);
}

.motion .logo[data-logo]:not(.is-assembled) .mark__stem,
.motion .logo[data-logo]:not(.is-assembled) .mark__base,
.motion [data-assemble]:not(.is-revealed) .mark__stem,
.motion [data-assemble]:not(.is-revealed) .mark__base {
	transform: translateY(90px);
}

.motion .mark__arm-left,
.motion .mark__arm-right {
	transition-delay: 0.12s;
}

.motion .mark__stem {
	transition-delay: 0.22s;
}

.motion .mark__base {
	transition-delay: 0.3s;
}

.motion .logo[data-logo] .logo__word {
	transition: opacity 0.7s 0.35s;
}

.motion .logo[data-logo]:not(.is-assembled) .logo__word {
	opacity: 0;
}

/* Service drawings are traced as their card arrives, and again on hover. */
.motion .service-icon[data-draw] > * {
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.motion .service-icon[data-draw].is-revealed > * {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.1s var(--ease-out);
	transition-delay: calc(var(--reveal-order, 0) * 90ms + 0.15s);
}

@keyframes mklaw-trace {
	from {
		stroke-dashoffset: 1;
	}

	to {
		stroke-dashoffset: 0;
	}
}

.motion a:hover .service-icon[data-draw].is-revealed > * {
	animation: mklaw-trace 0.9s var(--ease-out);
}

/* The Google score: the stars fill from the left while mklaw.js counts the figure up. */
.motion .stars[data-fill] {
	transition: --stars-shown 1.5s var(--ease-out) 0.15s;
}

.motion .stars[data-fill]:not(.is-revealed) {
	--stars-shown: 0;
}

/* Not shown until it starts counting, so nobody glimpses a score of 0.0. */
.motion [data-count] {
	transition: opacity 0.3s;
}

.motion [data-count]:not(.is-revealed) {
	opacity: 0;
}

@keyframes mklaw-settle {
	from {
		transform: scale(1.08);
	}

	to {
		transform: none;
	}
}

/* Each photograph eases back a little as its slide arrives. */
.motion .hero__image.is-current {
	animation: mklaw-settle 6s var(--ease-out) both;
}

@keyframes mklaw-rise {
	from {
		opacity: 0;
		transform: translateY(0.5em);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* A slide's words rise in one after another, once the last slide's have faded. */
.motion .hero__title.is-current span {
	animation: mklaw-rise 0.8s var(--ease-out) both;
	animation-delay: calc(var(--word, 0) * 70ms + 0.25s);
}

.motion .hero__text,
.motion .hero__actions {
	animation: mklaw-rise 0.8s var(--ease-out) 0.5s both;
}

.motion .hero__actions {
	animation-delay: 0.62s;
}

@keyframes mklaw-arrive {
	from {
		opacity: 0;
		transform: translateX(48px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.motion .hero__sigma .sigma__shape {
	animation: mklaw-arrive 1.1s var(--ease-out) 0.1s both;
}

/* The statement's Σ slides in from the edge of the page it runs off. */
.motion [data-assemble] .sigma__shape {
	transition: transform 1.1s var(--ease-out);
}

.motion [data-assemble]:not(.is-revealed) .sigma__shape {
	transform: translateX(120px);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* 13. Print -------------------------------------------------------------- */

@media print {
	.site-header__top,
	.nav-toggle,
	.site-nav,
	.notice-bar,
	.section-links,
	.cta,
	.post-nav,
	.site-footer__grid {
		display: none !important;
	}

	.site-header {
		position: static;
	}

	body {
		font-size: 11pt;
	}

	.entry-content a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}
}
