/*
Theme Name: Standard Law
Author: Standard Law
Description: Editorial block theme for a Brisbane law firm. Navy accent on black and white with light Public Sans headings.
Version: 1.6.2
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: standard-law
*/

:root {
	--sl-accent: var(--wp--preset--color--accent, #123A5C);
	/* Light tint of the accent for use on dark backgrounds, where navy would disappear */
	--sl-accent-light: #0066CC;
	--sl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

body {
	-webkit-font-smoothing: antialiased;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ---------- Header (transparent, overlays the first band) ---------- */
.wp-site-blocks > header.wp-block-template-part {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
}

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

.site-header .site-logo img {
	display: block;
	height: auto;
}

.site-header .wp-block-navigation a {
	position: relative;
	transition: opacity 0.2s ease;
}

.site-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -6px;
	height: 2px;
	background: var(--sl-accent);
	transition: right 0.3s var(--sl-ease);
}

.site-header .wp-block-navigation-item__content:hover {
	text-decoration: none;
}

.site-header .wp-block-navigation-item__content:hover::after {
	right: 0;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

/* ---------- Eyebrow label with accent double bar ---------- */
.eyebrow {
	position: relative;
	padding-left: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.01em;
	background:
		linear-gradient(var(--sl-accent), var(--sl-accent)) 0 50% / 2px 1.05em no-repeat,
		linear-gradient(var(--sl-accent), var(--sl-accent)) 5px 50% / 2px 1.05em no-repeat;
}

/* ---------- Text links with chevron ---------- */
.text-link {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.text-link a {
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.text-link a::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s var(--sl-ease);
}

.text-link a:hover {
	text-decoration: none;
}

.text-link a:hover::after {
	transform: translateX(4px) rotate(45deg);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	min-height: min(88vh, 860px);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background-color: #050506;
	background-image:
		radial-gradient(ellipse 60% 55% at 82% 28%, rgba(43, 106, 158, 0.32), transparent 70%),
		radial-gradient(ellipse 70% 60% at 10% 110%, rgba(255, 255, 255, 0.07), transparent 70%),
		linear-gradient(165deg, #1b1d22 0%, #0b0c0e 55%, #000 100%);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px);
	pointer-events: none;
	animation: drift 40s linear infinite;
}

.hero > * {
	position: relative;
}

@keyframes drift {
	from { background-position: 0 0; }
	to { background-position: 440px 0; }
}

.hero-title {
	max-width: 15em;
	font-weight: 100 !important;
}

.hero .hero-progress,
.hero .hero-controls {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1280px);
}

.hero-progress {
	gap: 0.5rem !important;
	justify-content: flex-start !important;
}
.hero-progress > p {
	width: 3rem;
	height: 2px;
	margin: 0;
	background: rgba(255, 255, 255, 0.25);
	font-size: 0;
}

.hero-progress > p.is-active {
	background: var(--wp--preset--color--white);
}

.hero-counter {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

/* ---------- Impact cards ---------- */
.impact-card {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	transition: transform 0.4s var(--sl-ease);
}

.impact-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
	pointer-events: none;
}

.impact-card > * {
	position: relative;
	z-index: 1;
}

.impact-card:hover {
	transform: translateY(-6px);
}

.impact-card--one {
	background:
		radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.35) 0 18%, transparent 19%),
		radial-gradient(circle at 70% 75%, transparent 0 26%, rgba(255, 255, 255, 0.18) 26.5% 27%, transparent 27.5%),
		linear-gradient(150deg, #c9b79a, #8c7556);
}

.impact-card--two {
	background:
		repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 26px),
		repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 26px),
		linear-gradient(170deg, #6f8fb6, #1d3557);
}

.impact-card--three {
	background:
		radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.28) 0 22%, transparent 23%),
		radial-gradient(circle at 95% 10%, rgba(43, 106, 158, 0.55) 0 30%, transparent 31%),
		linear-gradient(140deg, #c3cfd9, #123A5C);
}

/* ---------- Equal cards ---------- */
.equal-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
	flex-grow: 0;
}

.equal-cards > .wp-block-column > .wp-block-group {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.equal-cards .cta-bottom {
	margin-top: auto;
}

/* "Where we are" office columns on Our firm */
.location-cols > .wp-block-column {
	padding-top: var(--wp--preset--spacing--40);
	border-top: 2px solid var(--sl-accent);
}

.location-cols h3 {
	margin: 0;
	font-weight: 300;
}

/* ---------- Expertise list ---------- */
.expertise-list .wp-block-column > p {
	margin: 0;
	padding: 1.1rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.expertise-list .wp-block-column > p a {
	color: var(--wp--preset--color--white);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease, padding-left 0.3s var(--sl-ease);
}

.expertise-list .wp-block-column > p a::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.expertise-list .wp-block-column > p a:hover {
	color: #0066CC;
	padding-left: 0.5rem;
	text-decoration: none;
}

/* ---------- Insight cards ---------- */
.insight-card {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 1.5rem;
	transition: border-color 0.3s ease;
}

.insight-card:hover {
	border-color: var(--sl-accent);
}

.insight-card .insight-meta {
	color: var(--wp--preset--color--mid-grey);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ---------- Stats ---------- */
.stat-number {
	font-weight: 300 !important;
	line-height: 1 !important;
	font-variant-numeric: tabular-nums;
}

.stat-block {
	border-left: 1px solid var(--wp--preset--color--rule);
	padding-left: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer a {
	color: var(--wp--preset--color--white);
}

.site-footer a:hover {
	color: #0066CC;
	text-decoration: none;
}

.site-footer .footer-heading {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.site-footer .footer-links p {
	margin: 0 0 0.9rem;
}

.site-footer .wp-block-separator {
	border-color: rgba(255, 255, 255, 0.2) !important;
	opacity: 1;
}

/* ---------- Page title band ---------- */
.page-hero {
	background-color: #050506;
	background-image:
		radial-gradient(ellipse 55% 80% at 90% 0%, rgba(43, 106, 158, 0.3), transparent 70%),
		linear-gradient(165deg, #1b1d22 0%, #000 100%);
}

/* ---------- Inner pages ---------- */
/* A large email address on its own line (e.g. Contact): keep it whole and scale it to fit its column */
main p.has-large-font-size:has(> a[href^="mailto:"]:only-child) {
	font-size: clamp(1.125rem, 2.7vw, 1.75rem) !important;
}

main p > a[href^="mailto:"]:only-child {
	white-space: nowrap;
}
/* Legal notices and Privacy policy: one reading column lined up with the page title */
.legal-text > * {
	max-width: 46rem;
}

.legal-text h2 {
	margin-top: var(--wp--preset--spacing--50);
}

.legal-text ul ul {
	margin-top: 0.4rem;
}

.legal-text li + li {
	margin-top: 0.4rem;
}

.legal-text h3 {
	margin-top: var(--wp--preset--spacing--40);
	font-weight: 600;
}

/* FAQs: one question per row, answer opens below */
.legal-faq {
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.legal-faq + .legal-faq {
	margin-top: 0 !important;
}

.legal-faq + :not(.legal-faq) {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: var(--wp--preset--spacing--40);
}

.legal-faq summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 0;
	font-weight: 500;
	list-style: none;
	cursor: pointer;
}

.legal-faq summary::-webkit-details-marker {
	display: none;
}

.legal-faq summary::after {
	content: "";
	flex: none;
	width: 0.5em;
	height: 0.5em;
	margin-right: 0.25em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s var(--sl-ease);
}

.legal-faq[open] summary::after {
	transform: rotate(-135deg);
}

.legal-faq summary:hover,
.legal-faq summary:focus-visible {
	color: var(--sl-accent);
}

.legal-faq > :not(summary) {
	margin: 0 0 1rem;
}

.legal-faq[open] {
	padding-bottom: 0.75rem;
}
/* Opening paragraphs that line up with the page title (left edge of the wide column) */
.is-layout-constrained > .intro-left {
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size, 1280px)) / 2)) !important;
	margin-right: auto !important;
}

.page-lead {
	font-weight: 300;
	line-height: 1.45;
}

.page-hero .eyebrow a,
.insight-meta a {
	color: inherit;
}

.page-hero .eyebrow {
	gap: 0.75rem;
}

.insight-title a {
	color: var(--wp--preset--color--ink);
}

.insight-title a:hover {
	color: var(--sl-accent);
	text-decoration: none;
}

.wp-block-read-more.text-link {
	color: var(--wp--preset--color--ink);
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.wp-block-read-more.text-link::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.wp-block-post-template .insight-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.wp-block-post-template .insight-card .wp-block-read-more {
	margin-top: auto;
}

.person-card {
	border-top: 2px solid var(--wp--preset--color--ink);
	padding-top: 1.5rem;
	transition: border-color 0.3s ease;
}

.person-card:hover {
	border-color: var(--sl-accent);
}

.person-card h3 {
	font-size: 1.25rem !important;
	margin-bottom: 0.25rem;
}

.person-monogram {
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 5;
	margin: 0 0 1.25rem;
	padding: 1.25rem;
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--white);
	background:
		radial-gradient(circle at 80% 15%, rgba(43, 106, 158, 0.45), transparent 55%),
		linear-gradient(160deg, #2a2c31, #0b0c0e);
}

.tick-list {
	list-style: none;
	padding-left: 0;
}

.tick-list li {
	position: relative;
	padding: 0.85rem 0 0.85rem 2rem;
	border-top: 1px solid var(--wp--preset--color--rule);
}

.tick-list li::before {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 1.15rem;
	width: 0.7rem;
	height: 0.4rem;
	border-left: 2px solid var(--sl-accent);
	border-bottom: 2px solid var(--sl-accent);
	transform: rotate(-45deg);
}

/* ---------- Motion ---------- */
.fade-up {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeUp 0.9s var(--sl-ease) 0.15s forwards;
}

@keyframes fadeUp {
	to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s var(--sl-ease), transform 0.8s var(--sl-ease);
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.stagger-children > * {
	opacity: 0;
	transform: translateY(24px);
	animation: fadeUp 0.7s var(--sl-ease) forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* Editor: keep animated content visible while editing */
.editor-styles-wrapper .fade-up,
.editor-styles-wrapper .animate-on-scroll,
.editor-styles-wrapper .stagger-children > * {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	transition: none !important;
}

.editor-styles-wrapper .hero::before {
	animation: none;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
	.fade-up,
	.animate-on-scroll,
	.stagger-children > * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
	.impact-card {
		min-height: 300px;
	}
	.stat-block {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--rule);
		padding-left: 0;
		padding-top: 1.25rem;
	}
	.hero-controls {
		flex-wrap: wrap;
	}
}

/* ---------- Service boxes ---------- */
.services-band .services-grid {
	gap: 4px;
}

.service-card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	min-height: 19rem;
	margin: 0;
	padding: clamp(1.75rem, 3vw, 3rem);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	transition: color 0.3s ease;
}

/* Arrow icon, top left */
.service-card::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin-bottom: 2.5rem;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 18 18 6M9 6h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M6 18 18 6M9 6h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.service-card:hover,
.service-card:focus-within {
	color: var(--wp--preset--color--accent);
}

.service-card:hover::before,
.service-card:focus-within::before {
	transform: translate(3px, -3px);
}

.service-card .service-card__title {
	margin: auto 0 0;
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	font-weight: 300;
	line-height: 1.2;
}

.service-card .service-card__title a {
	color: inherit;
	text-decoration: none;
}

/* Make the whole box clickable */
.service-card .service-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.service-card .service-card__title a:focus-visible {
	outline: none;
}

.service-card:has(a:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -2px;
}

.service-card .service-card__summary {
	margin: 0.9rem 0 0;
	max-width: 26em;
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.editor-styles-wrapper .service-card .service-card__title a::after {
	display: none;
}

@media (max-width: 781px) {
	.service-card {
		min-height: 14rem;
	}
	.service-card::before {
		margin-bottom: 1.5rem;
	}
}

/* ---------- Service detail pages ---------- */
.service-contact {
	max-width: 300px;
}

.service-contact .person-monogram {
	aspect-ratio: 1 / 1;
}

.related-services__list {
	gap: 0.5rem 0.5rem;
	margin-top: 1rem;
}

.related-services__list p {
	margin: 0;
}

.related-services__list a {
	display: inline-block;
	padding: 0.6rem 1rem;
	border: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	transition: border-color 0.2s ease, color 0.2s ease;
}

.related-services__list a:hover,
.related-services__list a:focus-visible {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}
/* ---------- Service page layout: left aligned, offer cards ---------- */
.service-body .service-intro {
	max-width: 19em;
	font-weight: 300;
	line-height: 1.3;
}

.service-body .service-text {
	max-width: 42em;
}

/* Pin the narrower text to the left edge of the 1280px column instead of centring it */
.service-body.is-layout-constrained > .service-intro,
.service-body.is-layout-constrained > .service-text {
	margin-left: max(0px, calc((100% - 1280px) / 2)) !important;
	margin-right: auto !important;
}

.service-body .offer-grid {
	gap: 4px;
}

.offer-card {
	display: flex;
	flex-direction: column;
	min-height: 15rem;
	margin: 0;
	padding: clamp(1.5rem, 2.6vw, 2.75rem);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.offer-card::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	margin-bottom: 2rem;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 12.5 9.5 18 20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.offer-card .offer-card__title {
	margin: auto 0 0;
	max-width: 16em;
	font-size: clamp(1.2rem, 1.7vw, 1.5rem);
	font-weight: 300;
	line-height: 1.3;
}

.service-meta .service-contact {
	max-width: 280px;
}

@media (max-width: 781px) {
	.offer-card {
		min-height: 10rem;
	}
	.offer-card::before {
		margin-bottom: 1.25rem;
	}
}
/* ---------- Lawyer profiles ---------- */
.profile-head {
	display: flex;
	align-items: stretch;
	margin-top: var(--wp--preset--spacing--40);
}

.profile-head > * {
	margin: 0 !important;
}

.profile-head > .profile-photo {
	flex: 0 0 clamp(140px, 24vw, 300px);
	aspect-ratio: 4 / 5;
}

.profile-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.profile-photo--monogram {
	display: flex;
	align-items: flex-end;
	padding: clamp(1rem, 2vw, 1.75rem);
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 300;
	line-height: 1;
	color: var(--wp--preset--color--white);
	background:
		radial-gradient(circle at 80% 15%, rgba(43, 106, 158, 0.55), transparent 55%),
		linear-gradient(160deg, #34363c, #0b0c0e);
}

.profile-panel {
	flex: 0 1 640px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 4.5vw, 4.5rem);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.profile-panel > * {
	margin: 0;
}

.profile-panel .profile-name {
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	font-weight: 100;
	line-height: 1.1;
	color: var(--wp--preset--color--ink);
}

.profile-panel .profile-role p {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--mid-grey);
}

.profile-layout {
	gap: clamp(2rem, 7vw, 7rem) !important;
}

.profile-aside .profile-aside__inner > * + * {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.profile-contact > p {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.profile-contact > p > a,
.profile-contact > p > span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	word-break: break-word;
}

.profile-contact > p > a::after {
	content: "";
	flex: none;
	width: 0.4em;
	height: 0.4em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.profile-contact > p > a:hover,
.profile-contact > p > a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.profile-facts > p:not(.eyebrow) {
	margin-top: 0.75rem;
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.profile-toc {
	padding: 1.5rem 2rem 1.75rem;
	background: var(--wp--preset--color--surface);
}

.profile-toc__links {
	gap: 0.5rem 2rem;
	margin-top: 1.25rem !important;
}

.profile-toc__links p {
	margin: 0;
}

.profile-toc__links a {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.profile-toc__links a:hover,
.profile-toc__links a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.profile-main h2 {
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: 1.5rem;
	scroll-margin-top: 2rem;
}

.profile-main p:not(.eyebrow) {
	line-height: 1.75;
}

@media (min-width: 782px) {
	.profile-aside__inner {
		position: sticky;
		top: 2rem;
	}
}

@media (max-width: 600px) {
	.profile-head {
		flex-direction: column;
	}
	.profile-head > .profile-photo {
		flex-basis: auto;
		width: 55%;
	}
	.profile-panel {
		flex-basis: auto;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.profile-facts .related-services__list {
	margin-top: 1rem;
}

.person-card h3 a {
	color: var(--wp--preset--color--ink);
}

.person-card h3 a:hover,
.person-card h3 a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* ---------- Insight articles ---------- */
.insight-panel {
	position: relative;
	max-width: 780px;
	padding: clamp(1.75rem, 4vw, 3.5rem);
	background: #123A5C;
}

/* Vertical slats continuing from the panel */
.insight-panel::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 100%;
	width: clamp(80px, 12vw, 180px);
	background: repeating-linear-gradient(90deg, #123A5C 0 12px, transparent 12px 32px);
}

.insight-panel > * {
	margin: 0;
}

.insight-panel .eyebrow a {
	color: inherit;
}

.insight-panel .insight-title-main {
	margin-top: 1.5rem;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 100;
	line-height: 1.12;
}

.insight-panel .insight-date {
	margin-top: 1.5rem;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--wp--preset--font-size--small);
}

.insight-layout {
	gap: clamp(2rem, 6vw, 6rem) !important;
}

.insight-toc ol {
	list-style: none;
	counter-reset: toc;
	margin: 1.25rem 0 0;
	padding: 0;
}

.insight-toc li {
	counter-increment: toc;
	display: flex;
	gap: 0.75rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.insight-toc li::before {
	content: counter(toc, decimal-leading-zero);
	flex: none;
	color: var(--wp--preset--color--accent);
}

.insight-toc a {
	color: var(--wp--preset--color--ink);
}

.insight-toc a:hover,
.insight-toc a:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

.insight-body {
	counter-reset: section;
}

.insight-body > * {
	max-width: 46rem;
}

.insight-body > :first-child {
	margin-top: 0;
}

.insight-body .insight-standfirst {
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	font-weight: 300;
	line-height: 1.35;
}

.insight-body .insight-byline {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.insight-body > h2 {
	counter-increment: section;
	display: flex;
	align-items: baseline;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	scroll-margin-top: 2rem;
}

.insight-body > h2::before {
	content: counter(section, decimal-leading-zero);
	flex: none;
	color: var(--wp--preset--color--accent);
	font-size: 0.75em;
}

.insight-body > h3 {
	margin-top: 2.5rem;
	font-size: 1.25rem;
}

.insight-body p,
.insight-body li {
	line-height: 1.75;
}

.insight-body ul,
.insight-body ol:not(.wp-block-footnotes) {
	padding-left: 1.25rem;
}

.insight-body li + li {
	margin-top: 0.6rem;
}

.insight-body li::marker {
	color: var(--wp--preset--color--accent);
}

.insight-body sup.fn {
	line-height: 0;
}

.insight-body sup.fn a {
	padding: 0 0.1em;
	color: var(--wp--preset--color--accent);
	font-size: 0.75em;
	font-weight: 600;
}

.insight-body .wp-block-footnotes {
	margin-top: var(--wp--preset--spacing--60);
	padding: 1.5rem 0 0 1.5rem;
	border-top: 2px solid var(--wp--preset--color--ink);
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.insight-body .wp-block-footnotes::before {
	content: "Footnotes";
	display: block;
	margin: 0 0 1rem -1.5rem;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.insight-body .wp-block-footnotes li {
	line-height: 1.55;
	scroll-margin-top: 2rem;
}

.insight-body .wp-block-footnotes li + li {
	margin-top: 0.35rem;
}

.insight-body .wp-block-footnotes a {
	color: var(--wp--preset--color--accent);
}

.insight-body .insight-contacts {
	max-width: none;
}

@media (min-width: 782px) {
	.insight-toc {
		position: sticky;
		top: 2rem;
	}
}

@media (max-width: 781px) {
	.insight-panel::after {
		display: none;
	}
}

/* ---------- Dynamic person cards (Person card block and People query) ---------- */
.person-photo {
	display: block;
	margin: 0 0 1.25rem;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.person-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

a.person-photo.person-monogram,
a.person-photo.person-monogram:hover {
	display: flex;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.wp-block-standard-law-person-card.person-card,
.people-query .person-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.person-card .person-card__name {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
}

.person-card .person-card__role,
.people-query .wp-block-post-excerpt__excerpt {
	margin: 0;
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.person-card .person-card__link,
.people-query .person-card .wp-block-read-more {
	margin-top: auto;
	padding-top: 1rem;
}

.people-query .person-card > * {
	margin-block: 0;
}

.people-query .person-card .wp-block-post-title {
	margin-bottom: 0.25rem;
}

.people-query .wp-block-post-template {
	row-gap: var(--wp--preset--spacing--50);
}

.service-contact .person-photo {
	aspect-ratio: 1 / 1;
}

.insight-body .insight-contacts .person-photo {
	aspect-ratio: 1 / 1;
}

/* Keep editor previews from navigating away */
.editor-styles-wrapper .wp-block-standard-law-person-card a {
	pointer-events: none;
}

.people-query .person-card > .person-photo {
	margin-bottom: 1.25rem;
}

/* Quotations from judgments and other sources */
.insight-body .wp-block-quote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.insight-body .wp-block-quote p {
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.65;
}

/* ---------- Practice areas: profile services and service contacts ---------- */
.practice-areas .related-services__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.practice-areas__hint {
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.service-contacts__list {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	margin-top: 1.5rem;
}

/* ---------- Accent on dark backgrounds ---------- */
/* Navy is too dark to read on black, ink or navy, so dark areas use the light tint. */
.page-hero,
.site-footer,
.insight-panel,
.has-ink-background-color,
.has-black-background-color,
.has-accent-background-color {
	--sl-accent: var(--sl-accent-light);
}

.service-contacts > .eyebrow,
.practice-areas > .eyebrow {
	margin-top: 0;
}

/* Keep service titles at the foot of their box (they are now the box's only text) */
.service-card > .service-card__title {
	margin-top: auto !important;
}

/* Client impact card headlines */
.impact-card h3 {
	font-weight: 200;
}

/* ---------- Homepage: sticky header, transparent at the top, white once scrolled ---------- */
body.home .wp-site-blocks > header.wp-block-template-part {
	position: fixed;
}

body.home .site-header {
	transition:
		background-color 0.6s cubic-bezier(0.5, 0, 0, 1),
		color 0.6s cubic-bezier(0.5, 0, 0, 1),
		box-shadow 0.6s cubic-bezier(0.5, 0, 0, 1);
}

body.home .site-header .site-logo img {
	transition: filter 0.6s cubic-bezier(0.5, 0, 0, 1);
}

body.home.is-scrolled .site-header {
	background-color: var(--wp--preset--color--white);
	box-shadow: 0 1px 0 var(--wp--preset--color--rule);
}

body.home.is-scrolled .site-header,
body.home.is-scrolled .site-header .wp-block-navigation.has-text-color,
body.home.is-scrolled .site-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--ink) !important;
}

/* The logo file is white; turn it black on the white header */
body.home.is-scrolled .site-header .site-logo img {
	filter: brightness(0);
}

/* The full-screen mobile menu keeps its own black background and white text */
body.home.is-scrolled .site-header .wp-block-navigation__responsive-container.is-menu-open,
body.home.is-scrolled .site-header .wp-block-navigation__responsive-container.is-menu-open a {
	color: var(--wp--preset--color--white) !important;
}

@media (prefers-reduced-motion: reduce) {
	body.home .site-header,
	body.home .site-header .site-logo img {
		transition: none;
	}
}

/* ---------- Hamburger menu up to 859px (core switches at 600px); five links need about 800px to sit on one line ---------- */
@media (min-width: 600px) and (max-width: 859px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Homepage: header slides away while scrolling down, returns on scroll up ---------- */
body.home .wp-site-blocks > header.wp-block-template-part {
	transition: transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

body.home.is-header-hidden .wp-site-blocks > header.wp-block-template-part {
	transform: translateY(-100%);
}

/* An open mobile menu must never slide away */
body.home.is-header-hidden .wp-site-blocks > header.wp-block-template-part:has(.is-menu-open) {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	body.home .wp-site-blocks > header.wp-block-template-part {
		transition: none;
	}
}

/* ---------- Service list block (homepage list, Expertise boxes, Related services) ---------- */
.service-list--list {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(var(--service-rows, 4), auto);
	column-gap: 2em;
	align-content: start;
}

.service-list--list > p {
	margin: 0;
	padding: 1.1rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-list--list > p a {
	color: var(--wp--preset--color--white);
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease, padding-left 0.3s var(--sl-ease);
}

.service-list--list > p a::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.service-list--list > p a:hover {
	color: var(--sl-accent-light);
	padding-left: 0.5rem;
	text-decoration: none;
}

@media (max-width: 781px) {
	.service-list--list {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}
}

.service-list--cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(min(18rem, 100%), calc((100% - 8px) / 3)), 1fr));
	gap: 4px;
	margin-top: var(--wp--preset--spacing--50);
}

.service-list--pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Boxes from the Service list block are plain divs, so include padding in their height as the old group blocks did */
.service-list--cards .service-card {
	box-sizing: border-box;
}

/* Eyebrow labels used as section headings (h2) look the same as paragraph eyebrows */
h2.eyebrow,
h3.eyebrow {
	margin-bottom: 0;
	color: inherit;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0.01em;
}

.service-contacts > h2.eyebrow {
	margin-top: 0;
}

/* ---------- Enquiry form (Jetpack Forms on the Contact page) ---------- */
.enquiry-form-section > * {
	max-width: 46rem;
}

.enquiry-form-section .enquiry-form__intro {
	margin-top: 1rem;
	font-weight: 300;
	line-height: 1.4;
}

.enquiry-form-section .enquiry-form__notice {
	margin-top: 1rem;
	padding-left: 1rem;
	border-left: 2px solid var(--wp--preset--color--accent);
}

.enquiry-form-section .enquiry-form {
	margin-top: var(--wp--preset--spacing--40);
	gap: 1.5rem !important;
}

.enquiry-form .grunion-field-label {
	margin-bottom: 0.5rem;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0.01em;
}

.enquiry-form .grunion-label-required {
	margin-left: 0.35rem;
	color: var(--wp--preset--color--mid-grey);
	font-weight: 400;
}

.enquiry-form input.grunion-field,
.enquiry-form select,
.enquiry-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--wp--preset--color--rule) !important;
	border-radius: 0 !important;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-form input.grunion-field:hover,
.enquiry-form select:hover,
.enquiry-form textarea:hover {
	border-color: var(--wp--preset--color--mid-grey) !important;
}

.enquiry-form input.grunion-field:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
	border-color: var(--wp--preset--color--accent) !important;
	outline: none;
	box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}

.enquiry-form textarea {
	min-height: 10rem;
}

.enquiry-form .enquiry-form__privacy {
	margin: 0;
}

.enquiry-form .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--black);
}

/* Jetpack wraps the drop-down in a bordered box; keep only the select's own border */
.enquiry-form .contact-form__select-wrapper {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	padding: 0 !important;
}

/* ---------- Lock in the multi-column layouts ----------
   The editor's Query Loop "List view" switch can save these lists as a single
   stacked column. These rules keep the intended columns whatever that switch says. */
.people-query .wp-block-post-template,
.home-insights .wp-block-post-template {
	display: grid !important;
	margin: 0;
	padding: 0;
	list-style: none;
}

.people-query .wp-block-post-template {
	--sl-grid-gap: var(--wp--preset--spacing--40);
	gap: var(--sl-grid-gap);
	row-gap: var(--wp--preset--spacing--50);
	grid-template-columns: repeat(auto-fill, minmax(max(min(14rem, 100%), calc((100% - 3 * var(--sl-grid-gap)) / 4)), 1fr));
}

.home-insights .wp-block-post-template {
	--sl-grid-gap: var(--wp--preset--spacing--50);
	gap: var(--sl-grid-gap);
	grid-template-columns: repeat(auto-fill, minmax(max(min(16rem, 100%), calc((100% - 2 * var(--sl-grid-gap)) / 3)), 1fr));
}

.people-query .wp-block-post-template > *,
.home-insights .wp-block-post-template > * {
	margin: 0 !important;
	max-width: none;
}

/* ---------- Insights: "Filter by" bar, search and page numbers ---------- */
.insight-filter .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.insight-filter__bar {
	position: relative;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 2rem;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--rule);
}

.insight-filter__label {
	color: var(--wp--preset--color--mid-grey);
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Dropdown trigger: small uppercase label with up/down chevrons */
.insight-filter__menu {
	position: relative;
}

.insight-filter__menu summary {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0;
	color: var(--wp--preset--color--ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}

.insight-filter__menu summary::-webkit-details-marker {
	display: none;
}

.insight-filter__menu summary::after {
	content: "";
	width: 8px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M1 4 4 1l3 3M1 8l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12' fill='none' stroke='black' stroke-width='1.3'%3E%3Cpath d='M1 4 4 1l3 3M1 8l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.insight-filter__menu summary:hover,
.insight-filter__menu summary:focus-visible,
.insight-filter__menu[open] summary {
	color: var(--sl-accent);
}

.insight-filter__n {
	color: var(--sl-accent);
}

.insight-filter__panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: -1.25rem;
	width: 18rem;
	max-width: calc(100vw - 2rem);
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--white);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.insight-filter__panel-title {
	margin: 0;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--surface);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.insight-filter__panel fieldset {
	max-height: 16rem;
	margin: 0;
	padding: 0.75rem 1.25rem;
	overflow-y: auto;
	border: 0;
}

.insight-filter__panel label {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.45rem 0;
	font-size: var(--wp--preset--font-size--small);
	cursor: pointer;
}

.insight-filter__panel input[type="checkbox"] {
	flex: none;
	width: 1.375rem;
	height: 1.375rem;
	margin: 0;
	border: 1px solid var(--wp--preset--color--rule);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	appearance: none;
	cursor: pointer;
}

.insight-filter__panel input[type="checkbox"]:checked {
	border-color: var(--sl-accent);
	background: var(--sl-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.insight-filter__panel input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--sl-accent);
	outline-offset: 2px;
}

.insight-filter__panel-foot {
	display: flex;
	justify-content: flex-end;
	padding: 0.9rem 1.25rem;
	border-top: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--surface);
}

.insight-filter__apply {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.insight-filter__apply::after {
	content: "";
	width: 0.45em;
	height: 0.45em;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.insight-filter__apply:hover,
.insight-filter__apply:focus-visible {
	color: var(--sl-accent);
}

/* Search sits at the end of the bar */
.insight-filter__search {
	display: flex;
	align-items: center;
	margin-left: auto;
	border-bottom: 1px solid var(--wp--preset--color--ink);
}

.insight-filter__search:focus-within {
	border-bottom-color: var(--sl-accent);
}

.insight-filter__search input[type="search"] {
	width: 13rem;
	padding: 0.45rem 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	outline: none;
}

.insight-filter__search input[type="search"]::placeholder {
	color: var(--wp--preset--color--mid-grey);
}

.insight-filter__search button {
	display: flex;
	padding: 0.25rem 0 0.25rem 0.5rem;
	border: 0;
	background: none;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.insight-filter__search button:hover,
.insight-filter__search button:focus-visible {
	color: var(--sl-accent);
}

/* Active filters: count, removable chips and Clear all */
.insight-filter__active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: var(--wp--preset--spacing--30);
}

.insight-filter__count {
	margin: 0;
	color: var(--wp--preset--color--mid-grey);
	font-size: var(--wp--preset--font-size--small);
}

.insight-filter__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.insight-filter__chips a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.7rem;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-size: 0.75rem;
	text-decoration: none;
}

.insight-filter__chips a::after {
	content: "\00D7";
	font-size: 1rem;
	line-height: 1;
}

.insight-filter__chips a:hover,
.insight-filter__chips a:focus-visible {
	color: var(--sl-accent);
}

.insight-filter__chips .insight-filter__clear a {
	padding-inline: 0;
	background: none;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.insight-filter__chips .insight-filter__clear a::after {
	content: none;
}

@media (max-width: 781px) {
	.insight-filter__search {
		flex: 1 1 100%;
		margin-left: 0;
	}
	.insight-filter__search input[type="search"] {
		flex: 1;
		width: auto;
	}
	/* Dropdowns open full width under the bar so they stay on screen */
	.insight-filter__menu {
		position: static;
	}
	.insight-filter__panel {
		top: 2.75rem;
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
	}
}

/* Page numbers: small and centred, current page in navy with a dot beneath */
.insight-pagination.wp-block-query-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--60);
}

.insight-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 0.5rem;
	margin: 0;
}

.insight-pagination .page-numbers,
.insight-pagination .wp-block-query-pagination-previous,
.insight-pagination .wp-block-query-pagination-next {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
}

.insight-pagination a.page-numbers:hover,
.insight-pagination a:focus-visible {
	color: var(--sl-accent);
}

.insight-pagination .page-numbers.current {
	color: var(--sl-accent);
}

.insight-pagination .page-numbers.current::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: currentColor;
}

/* Previous / Next become chevrons; the words stay for screen readers */
.insight-pagination .wp-block-query-pagination-previous,
.insight-pagination .wp-block-query-pagination-next {
	font-size: 0;
}

.insight-pagination .wp-block-query-pagination-previous::before,
.insight-pagination .wp-block-query-pagination-next::before {
	content: "";
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
}

.insight-pagination .wp-block-query-pagination-previous::before {
	margin-left: 3px;
	transform: rotate(-135deg);
}

.insight-pagination .wp-block-query-pagination-next::before {
	margin-right: 3px;
	transform: rotate(45deg);
}

.insight-pagination a.wp-block-query-pagination-previous:hover,
.insight-pagination a.wp-block-query-pagination-next:hover {
	color: var(--sl-accent);
}

.insight-pagination .is-disabled {
	color: var(--wp--preset--color--rule);
}
