/*
 * TXC global styles.
 *
 * Colours, fonts, sizes and spacing are theme.json presets (--wp--preset--*);
 * typography and logo sizes are overridden from the Customizer
 * (inc/customizer-css.php). This file maps them to a few short aliases used by
 * txc-blocks / txc-query / txc-sections and styles the theme's own chrome.
 *
 *  1. Tokens & base          5. Footer
 *  2. Layout & typography    6. Content templates
 *  3. Buttons & forms        7. Cards, chips, prose
 *  4. Header & navigation    8. Utilities
 */

/* 1. Tokens & base ======================================================= */

:root {
	--txc-radius: var(--wp--custom--radius--sm, 0.5rem);
	--txc-radius-lg: var(--wp--custom--radius--lg, 1rem);
	--txc-gutter: var(--wp--custom--gutter, clamp(1rem, 4vw, 2rem));
	--txc-header-height: 4.5rem;
	--txc-tap: 2.75rem; /* 44px minimum touch target */
	--txc-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.06), 0 1px 3px rgb(0 0 0 / 0.08);
	--txc-shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.25);
	--txc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--txc-wide: var(--wp--style--global--wide-size, 80rem);
	--txc-content: var(--wp--style--global--content-size, 46rem);
	/* Brass is a fill colour (navy text on it); harbor blue is for text links on light backgrounds. */
	--txc-link: var(--wp--preset--color--primary-dark, #1f4e8c);
	--txc-on-primary: var(--wp--preset--color--contrast, #000);
}

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

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

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

html body {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--txc-font-size, 17px);
	line-height: var(--txc-line-height, 1.6);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

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

:focus-visible {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
	border-radius: 2px;
}

::selection {
	background: color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

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

/* 2. Layout & typography ================================================ */

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

.txc-container--narrow {
	max-width: calc(var(--txc-content) + 2 * var(--txc-gutter));
}

.site-main {
	display: block;
	min-height: 60vh;
}

.site-main:focus {
	outline: none;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--txc-heading-weight, 700);
	letter-spacing: var(--txc-heading-tracking, -0.02em);
	text-transform: var(--txc-heading-case, none);
	line-height: 1.15;
	text-wrap: balance;
}

h1,
.txc-hero__heading {
	font-size: calc(var(--wp--preset--font-size--xx-large) * var(--txc-heading-scale, 1));
	line-height: 1.05;
}

h2 {
	font-size: calc(var(--wp--preset--font-size--x-large) * var(--txc-heading-scale, 1));
}

h3 {
	font-size: calc(var(--wp--preset--font-size--large) * var(--txc-heading-scale, 1));
}

p,
li {
	text-wrap: pretty;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

/* 3. Buttons & forms ===================================================== */

.txc-button,
.wp-element-button,
.wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--txc-tap);
	padding: 0.625rem 1.375rem;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: var(--txc-on-primary);
	font: inherit;
	font-weight: 650;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--txc-shadow-sm);
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s var(--txc-ease), box-shadow 0.15s;
}

.txc-button:hover,
.wp-element-button:hover,
.wpcf7-submit:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base, #fff);
	transform: translateY(-1px);
	box-shadow: var(--txc-shadow-md);
}

.txc-button:active {
	transform: none;
}

.txc-button--ghost {
	background: transparent;
	border-color: color-mix(in srgb, currentcolor 30%, transparent);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.txc-button--ghost:hover {
	background: transparent;
	border-color: currentcolor;
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.txc-button--block {
	display: flex;
	width: 100%;
}

/* Forms: 16px+ text so iOS doesn't zoom; 44px fields; clear focus and error states. */
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"], [type="file"]), select, textarea) {
	width: 100%;
	min-height: var(--txc-tap);
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--txc-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: max(1rem, 16px);
	transition: border-color 0.15s, box-shadow 0.15s;
}

:where(textarea) {
	min-height: 8rem;
	resize: vertical;
}

:where(input, select, textarea):focus-visible {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
}

:where(label) {
	font-weight: 600;
}

:where(input[type="checkbox"], input[type="radio"]) {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--wp--preset--color--primary);
}

.wpcf7 form p {
	margin: 0 0 1rem;
}

.wpcf7-not-valid {
	border-color: #b91c1c !important;
}

.wpcf7-not-valid-tip {
	margin-top: 0.25rem;
	color: #b91c1c;
	font-size: var(--wp--preset--font-size--small);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: var(--txc-radius);
}

/* 4. Header & navigation ================================================= */

.topbar {
	background: var(--wp--preset--color--contrast);
	color: color-mix(in srgb, var(--wp--preset--color--base) 85%, transparent);
	font-size: var(--wp--preset--font-size--small);
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.5rem;
	max-width: calc(var(--txc-wide) + 2 * var(--txc-gutter));
	min-height: 2.25rem;
	margin-inline: auto;
	padding-inline: var(--txc-gutter);
}

.topbar a {
	color: inherit;
}

.topbar__text {
	margin-right: auto;
}

.topbar .contact-list {
	flex-direction: row;
	gap: 1.25rem;
}

/* Phones: one line, just the message and the phone number. */
@media (max-width: 47.99em) {
	.topbar__inner {
		flex-wrap: nowrap;
		gap: 1rem;
		min-height: 2rem;
	}

	.topbar__text {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.topbar .contact-list li:not(:first-child),
	.topbar__social {
		display: none;
	}

	.topbar .contact-list a {
		white-space: nowrap;
	}
}

.site-header {
	--txc-header-pad: 1rem;
	position: relative;
	z-index: 100;
	background: color-mix(in srgb, var(--wp--preset--color--base) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--wp--preset--color--border);
	transition: transform 0.25s var(--txc-ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* Behaviour per breakpoint (classes from Customize → Header / Mobile header). */
html:not(.txc-mobile-nav) .site-header.d-sticky,
html:not(.txc-mobile-nav) .site-header.d-smart,
html.txc-mobile-nav .site-header.m-sticky,
html.txc-mobile-nav .site-header.m-smart {
	position: sticky;
	top: 0;
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.site-header.is-hidden {
	transform: translateY(calc(-100% - 1px));
}

.site-header.is-scrolled {
	box-shadow: var(--txc-shadow-sm);
}

.site-header.can-shrink.is-scrolled {
	--txc-header-pad: 0.5rem;
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1rem 2rem;
	max-width: calc(var(--txc-wide) + 2 * var(--txc-gutter));
	margin-inline: auto;
	padding: var(--txc-header-pad) var(--txc-gutter);
	transition: padding 0.2s var(--txc-ease);
}

/* Logo */
.site-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
	color: inherit;
	text-decoration: none;
}

.site-logo__img {
	display: block;
	width: var(--txc-logo-w, 168px);
	max-width: 100%;
	height: auto;
	transition: width 0.2s var(--txc-ease);
}

/* Tall or square logos never make the header bulky: cap the height, keep the proportions. */
.site-header .site-logo__img {
	max-height: 3.5rem;
	object-fit: contain;
	object-position: left center;
}

html.txc-mobile-nav .site-header .site-logo__img {
	max-height: 2.75rem;
}

.site-header.can-shrink.is-scrolled .site-logo__img {
	width: calc(var(--txc-logo-w, 168px) * 0.85);
}

.site-logo__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.site-logo__light {
	display: none;
}

/* Layouts */
.site-header--inline .site-nav {
	margin-left: auto;
}

.site-header--center .site-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.site-header--stacked .site-header__inner {
	flex-wrap: wrap;
	justify-content: center;
}

html:not(.txc-mobile-nav) .site-header--stacked .site-logo {
	flex-basis: 100%;
	justify-content: center;
}

html:not(.txc-mobile-nav) .site-header--stacked .site-header__actions {
	position: absolute;
	right: var(--txc-gutter);
	top: var(--txc-header-pad);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: none;
}

/* Desktop menu */
.site-nav__list,
.site-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.25rem;
}

.site-nav__list li {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.site-nav__list a {
	display: flex;
	align-items: center;
	min-height: var(--txc-tap);
	padding: 0.5rem 0.75rem;
	border-radius: var(--txc-radius);
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current-menu-parent > a {
	color: var(--txc-link);
}

.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 currentcolor;
	border-radius: 0;
}

.site-nav__sub-toggle {
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-left: -0.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.site-nav__sub-toggle svg {
	fill: currentcolor;
	transition: transform 0.2s var(--txc-ease);
}

.is-open > .site-nav__sub-toggle svg {
	transform: rotate(180deg);
}

/* The panel's mobile-only parts */
.site-nav__head,
.site-nav__footer,
.site-nav__toggle,
.site-nav__backdrop {
	display: none;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: block;
	min-width: 15rem;
	padding: 0.5rem;
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--txc-radius-lg);
	box-shadow: var(--txc-shadow-md);
	color: var(--wp--preset--color--contrast);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s var(--txc-ease), visibility 0.15s;
}

html:not(.txc-mobile-nav) .site-nav__list li:hover > .sub-menu,
html:not(.txc-mobile-nav) .site-nav__list li:focus-within > .sub-menu,
html:not(.txc-mobile-nav) .site-nav__list li.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li {
	display: block;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu a {
	min-height: 2.5rem;
	font-weight: 500;
	white-space: nowrap;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu a:hover {
	background: var(--wp--preset--color--surface);
}

/* Deeper levels open in their own fly-out panel beside the dropdown. */
html:not(.txc-mobile-nav) .site-nav__list .sub-menu li {
	position: relative;
	display: flex;
	align-items: center;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu {
	width: max-content;
	max-width: 22rem;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li {
	flex-wrap: nowrap;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu > li > a {
	flex: 1;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu .sub-menu {
	top: -0.5rem;
	left: 100%;
	transform: translateX(-4px);
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li.flyout-left > .sub-menu {
	right: 100%;
	left: auto;
	transform: translateX(4px);
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li:hover > .sub-menu,
html:not(.txc-mobile-nav) .site-nav__list .sub-menu li:focus-within > .sub-menu,
html:not(.txc-mobile-nav) .site-nav__list .sub-menu li.is-open > .sub-menu {
	transform: none;
}

/* Nested toggles point sideways. */
html:not(.txc-mobile-nav) .site-nav__list .sub-menu .site-nav__sub-toggle {
	margin: 0 0 0 -0.25rem;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu .site-nav__sub-toggle svg {
	transform: rotate(-90deg);
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu .flyout-left > .site-nav__sub-toggle svg {
	transform: rotate(90deg);
}

/* Mobile-only helpers inserted by nav.js. */
html:not(.txc-mobile-nav) .site-nav__subhead,
html:not(.txc-mobile-nav) .site-nav__overview {
	display: none !important;
}

.site-nav__list .txc-menu-all > a {
	color: var(--txc-link);
	font-weight: 700;
}

html:not(.txc-mobile-nav) .site-nav__list .txc-menu-all {
	margin-top: 0.25rem;
	padding-top: 0.25rem;
	border-top: 1px solid var(--wp--preset--color--border);
}

.site-header .social-links--sm {
	gap: 0.125rem;
}

/* Mobile header ------------------------------------------------------- */

/*
 * backdrop-filter would make the fixed menu panel position itself against the
 * header instead of the screen, so the mobile header uses a solid background.
 * While the menu is open the header sits above the dimmed backdrop.
 */
html.txc-mobile-nav .site-header {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: var(--wp--preset--color--base);
}

html.txc-nav-open .site-header {
	z-index: 300;
	transform: none;
}

html.txc-mobile-nav .site-header.is-transparent:not(.is-scrolled) {
	background: transparent;
}

html.txc-mobile-nav .site-header__inner {
	gap: 0.75rem;
}

html.txc-mobile-nav .site-logo__img {
	width: var(--txc-logo-w-mobile, 128px);
}

html.txc-mobile-nav .site-header__actions {
	margin-left: auto;
}

html.txc-mobile-nav .site-header__social {
	display: none;
}

html.txc-mobile-nav .site-header__cta {
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.9375rem;
}

html.txc-mobile-nav .no-mobile-cta .site-header__cta {
	display: none;
}

@media (max-width: 30em) {
	/* Very small screens: the CTA lives in the menu. */
	html.txc-mobile-nav .site-header__cta {
		display: none;
	}
}

html.txc-mobile-nav .site-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: var(--txc-tap);
	min-height: var(--txc-tap);
	padding: 0 0.75rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.site-nav__icon,
.site-nav__icon::before,
.site-nav__icon::after {
	display: block;
	width: 1.125rem;
	height: 2px;
	border-radius: 2px;
	background: currentcolor;
	transition: transform 0.2s var(--txc-ease), background-color 0.2s;
}

.site-nav__icon {
	position: relative;
}

.site-nav__icon::before,
.site-nav__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__icon::before {
	top: -6px;
}

.site-nav__icon::after {
	top: 6px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__icon {
	background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__icon::before {
	transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__icon::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* The mobile panel (drawer or dropdown) */
html.txc-mobile-nav .site-nav {
	position: fixed;
	inset: 0;
	z-index: 200;
	overflow: hidden; /* The closed drawer waits off-screen; it must not widen the page. */
	pointer-events: none;
}

html.txc-mobile-nav .site-nav__panel {
	position: absolute;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	visibility: hidden;
	transition: transform 0.28s var(--txc-ease), opacity 0.2s, visibility 0.28s;
}

html.txc-mobile-nav .menu-drawer .site-nav__panel {
	top: 0;
	right: 0;
	bottom: 0;
	width: min(24rem, 88vw);
	box-shadow: -24px 0 48px -24px rgb(0 0 0 / 0.35);
	transform: translateX(100%);
}

html.txc-mobile-nav .menu-dropdown .site-nav__panel {
	top: var(--txc-header-height);
	right: 0;
	left: 0;
	max-height: calc(100dvh - var(--txc-header-height));
	border-top: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--txc-shadow-md);
	opacity: 0;
	transform: translateY(-8px);
}

html.txc-mobile-nav .site-nav.is-open {
	pointer-events: auto;
}

html.txc-mobile-nav .site-nav.is-open .site-nav__panel {
	visibility: visible;
	opacity: 1;
	transform: none;
	/* Visible (and focusable) immediately on open; closing still waits for the slide-out. */
	transition: transform 0.28s var(--txc-ease), opacity 0.2s, visibility 0s;
}

html.txc-nav-open {
	overflow: hidden;
}

html.txc-mobile-nav .site-nav__backdrop:not([hidden]) {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 150;
	background: rgb(0 0 0 / 0.45);
}

html.txc-mobile-nav .menu-dropdown ~ .site-nav__backdrop {
	top: var(--txc-header-height);
}

html.txc-mobile-nav .site-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem var(--txc-gutter);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

html.txc-mobile-nav .menu-dropdown .site-nav__head {
	display: none;
}

.site-nav__title {
	font-weight: 700;
}

.site-nav__close {
	display: inline-grid;
	place-items: center;
	width: var(--txc-tap);
	height: var(--txc-tap);
	margin-right: -0.5rem;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	cursor: pointer;
}

.site-nav__close svg {
	fill: currentcolor;
}

html.txc-mobile-nav .site-nav__list {
	display: block;
	padding: 0.5rem var(--txc-gutter);
}

html.txc-mobile-nav .site-nav__list li {
	justify-content: space-between;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

html.txc-mobile-nav .site-nav__list a {
	flex: 1;
	min-height: 3rem;
	padding: 0.75rem 0;
	font-size: 1.0625rem;
}

html.txc-mobile-nav .site-nav__list > .current-menu-item > a,
html.txc-mobile-nav .site-nav__list > .current-menu-ancestor > a {
	box-shadow: none;
}

html.txc-mobile-nav .site-nav__sub-toggle {
	width: var(--txc-tap);
	height: var(--txc-tap);
	margin: 0 -0.5rem 0 0;
	border-radius: var(--txc-radius);
}

html.txc-mobile-nav .site-nav__sub-toggle svg,
html.txc-mobile-nav .is-open > .site-nav__sub-toggle svg {
	transform: rotate(-90deg);
}

/* Drill-down: each submenu slides in as its own panel with a Back button. */
html.txc-mobile-nav .site-nav__panel {
	overflow-x: hidden;
}

html.txc-mobile-nav .site-nav__list li {
	position: static;
}

html.txc-mobile-nav .site-nav__list .sub-menu {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 var(--txc-gutter) calc(1.5rem + env(safe-area-inset-bottom));
	background: var(--wp--preset--color--base);
	visibility: hidden;
	transform: translateX(100%);
	transition: transform 0.28s var(--txc-ease), visibility 0.28s;
}

html.txc-mobile-nav .site-nav__list .is-open > .sub-menu {
	visibility: visible;
	transform: none;
	transition: transform 0.28s var(--txc-ease), visibility 0s;
}

/* While a submenu is open, its parent panel doesn't scroll underneath it. */
html.txc-mobile-nav .site-nav__panel.has-open-sub,
html.txc-mobile-nav .site-nav__list .sub-menu.has-open-sub {
	overflow: hidden;
}

html.txc-mobile-nav .site-nav__subhead {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 calc(-1 * var(--txc-gutter));
	padding: 0.5rem var(--txc-gutter);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base);
}

.site-nav__back {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: var(--txc-tap);
	margin-left: -0.5rem;
	padding: 0 0.5rem;
	border: 0;
	border-radius: var(--txc-radius);
	background: none;
	color: var(--txc-link);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.site-nav__back svg {
	fill: currentcolor;
}

.site-nav__subtitle {
	margin-left: auto;
	font-weight: 700;
	text-align: right;
}

html.txc-mobile-nav .site-nav__list .site-nav__overview a {
	color: var(--txc-link);
}

html.txc-mobile-nav .site-nav__list .sub-menu .site-nav__sub-toggle svg {
	transform: rotate(-90deg);
}

html.txc-mobile-nav .site-nav__footer {
	display: grid;
	gap: 1.25rem;
	margin-top: auto;
	padding: 1.25rem var(--txc-gutter) calc(1.25rem + env(safe-area-inset-bottom));
}

/* No JS: show the whole menu, wrapping, rather than hide anything. */
html:not(.js) .site-nav__list .sub-menu {
	display: none;
}

/* Transparent header over the homepage hero */
.site-header.is-transparent {
	position: absolute;
	inset-inline: 0;
	top: 0;
	background: transparent;
	border-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: #fff;
}

html:not(.txc-mobile-nav) .site-header.is-transparent.d-sticky,
html:not(.txc-mobile-nav) .site-header.is-transparent.d-smart,
html.txc-mobile-nav .site-header.is-transparent.m-sticky,
html.txc-mobile-nav .site-header.is-transparent.m-smart {
	position: fixed;
}

.site-header.is-transparent:has(.site-logo__light) .site-logo__default {
	display: none;
}

.site-header.is-transparent .site-logo__light {
	display: inline-flex;
}

.site-header.is-transparent .txc-button--ghost,
.site-header.is-transparent .site-nav__toggle {
	border-color: rgb(255 255 255 / 0.5);
	background: transparent;
	color: inherit;
}

.site-header.is-transparent.is-scrolled,
html.txc-nav-open .site-header.is-transparent {
	background: color-mix(in srgb, var(--wp--preset--color--base) 94%, transparent);
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
}

.site-header.is-transparent.is-scrolled .site-logo__default,
html.txc-nav-open .site-header.is-transparent .site-logo__default {
	display: inline-flex;
}

.site-header.is-transparent.is-scrolled .site-logo__light,
html.txc-nav-open .site-header.is-transparent .site-logo__light {
	display: none;
}

.site-header.is-transparent.is-scrolled .site-nav__toggle {
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--contrast);
}



/* Breadcrumbs */
.breadcrumbs-wrap:empty {
	display: none;
}

.breadcrumbs {
	padding-top: 1.25rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.breadcrumbs p {
	margin: 0;
}

.breadcrumbs a {
	color: inherit;
}

.breadcrumbs .breadcrumb_last {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

/* 5. Footer ============================================================== */

.site-footer {
	margin-top: var(--wp--preset--spacing--70);
	background: var(--wp--preset--color--contrast);
	color: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	font-size: 0.9375rem;
}

/* Section-built pages end with a section that has its own spacing (often a coloured band). */
.txc-sections-page .site-footer {
	margin-top: 0;
}

.site-footer a {
	color: inherit;
}

.site-footer a:hover {
	color: var(--wp--preset--color--base);
}

.site-footer__inner {
	display: grid;
	gap: 2.5rem 3rem;
	grid-template-columns: minmax(0, 1fr);
	max-width: calc(var(--txc-wide) + 2 * var(--txc-gutter));
	margin-inline: auto;
	padding: var(--wp--preset--spacing--70) var(--txc-gutter) var(--wp--preset--spacing--50);
}

@media (min-width: 40em) {
	.site-footer__inner:not(.site-footer__inner--cols-0) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	/* Same specificity as the tablet rule above, so these win on wide screens. */
	.site-footer__inner.site-footer__inner--cols-1 { grid-template-columns: 1.4fr 1fr; }
	.site-footer__inner.site-footer__inner--cols-2 { grid-template-columns: 1.4fr repeat(2, 1fr); }
	.site-footer__inner.site-footer__inner--cols-3 { grid-template-columns: 1.4fr repeat(3, 1fr); }
	.site-footer__inner.site-footer__inner--cols-4 { grid-template-columns: 1.3fr repeat(4, 1fr); }
}

.site-footer__brand {
	display: grid;
	gap: 1rem;
	align-content: start;
	max-width: 24rem;
}

.site-logo--footer .site-logo__text {
	color: var(--wp--preset--color--base);
}

.site-footer__tagline {
	margin: 0;
}

.footer-widget + .footer-widget {
	margin-top: 1.5rem;
}

.footer-widget__title {
	margin: 0 0 0.875rem;
	color: var(--wp--preset--color--base);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.footer-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-widget li {
	margin: 0;
}

.footer-widget li a {
	display: inline-flex;
	align-items: center;
	min-height: 2.25rem;
	text-decoration: none;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 2rem;
	max-width: calc(var(--txc-wide) + 2 * var(--txc-gutter));
	margin-inline: auto;
	padding: 1.25rem var(--txc-gutter) calc(1.25rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgb(255 255 255 / 0.12);
	font-size: var(--wp--preset--font-size--small);
}

.site-footer__legal {
	margin: 0;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: var(--txc-tap);
}

/* Contact list & social links (header, footer, widget, shortcode) */
.contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list address {
	font-style: normal;
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social-links__link {
	--size: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: var(--size);
	min-height: var(--size);
	border-radius: 999px;
	color: inherit;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s, transform 0.15s var(--txc-ease);
}

.social-links--sm .social-links__link { --size: 2.25rem; }
.social-links--lg .social-links__link { --size: 3.25rem; }

.social-links__icon {
	width: calc(var(--size) * 0.42);
	height: calc(var(--size) * 0.42);
	fill: currentcolor;
}

.social-links__link:hover {
	background: color-mix(in srgb, currentcolor 12%, transparent);
	transform: translateY(-1px);
}

.social-links--labels {
	flex-direction: column;
	gap: 0;
}

.social-links--labels .social-links__link {
	justify-content: flex-start;
	min-width: 0;
	padding-right: 0.75rem;
}

/* 6. Content templates =================================================== */

.page-header {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.page-header__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--txc-link);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-header__title {
	margin: 0;
}

.page-header__intro {
	max-width: 42rem;
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.term-hero {
	display: grid;
	gap: var(--wp--preset--spacing--50);
	align-items: center;
	padding-block: var(--wp--preset--spacing--60);
}

@media (min-width: 64em) {
	.term-hero--image {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	}
}

.term-hero__image,
.case-study__image,
.entry-media__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--txc-radius-lg);
}

.term-body {
	padding-block: var(--wp--preset--spacing--60);
}

.case-study__header {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.case-study__title {
	max-width: 56rem;
	margin: 0;
}

.case-study__summary {
	max-width: 46rem;
	margin: 1.25rem 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
}

.case-study__project {
	font-weight: 600;
}

.case-study__media {
	margin-block: 0 var(--wp--preset--spacing--40);
}

.case-study__section + .case-study__section {
	margin-top: var(--wp--preset--spacing--50);
}

.case-study__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--50);
}

.case-study__gallery-item {
	margin: 0;
}

.case-study__gallery-item img {
	display: block;
	width: 100%;
	border-radius: var(--txc-radius);
}

.post-list__item {
	padding-block: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.post-list__title {
	margin: 0;
}

.post-list__meta {
	margin: 0.25rem 0 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--muted);
}

.page-404 {
	padding-block: var(--wp--preset--spacing--80);
	text-align: center;
}

/* 7. Cards, chips, prose ================================================= */

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

.txc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.25rem 0.875rem;
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s;
}

.txc-chip:hover {
	background: var(--wp--preset--color--border);
}

.txc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--txc-radius-lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--txc-shadow-sm);
	transition: box-shadow 0.25s var(--txc-ease), transform 0.25s var(--txc-ease), border-color 0.25s;
}

.txc-card:hover,
.txc-card:focus-within {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 35%, var(--wp--preset--color--border));
	box-shadow: var(--txc-shadow-md);
}

.txc-card__media {
	aspect-ratio: 8 / 5;
	overflow: hidden;
	background: linear-gradient(135deg, var(--wp--preset--color--surface), color-mix(in srgb, var(--wp--preset--color--primary) 12%, var(--wp--preset--color--surface)));
}

.txc-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--txc-ease);
}

.txc-card:hover .txc-card__image {
	transform: scale(1.03);
}

.txc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.5rem 1.5rem;
}

.txc-card__eyebrow {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.txc-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

/* The whole card is clickable; the title link stays the single accessible target. */
.txc-card__link {
	color: inherit;
	text-decoration: none;
}

.txc-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.txc-card__link:focus-visible {
	outline: none;
}

.txc-card:has(.txc-card__link:focus-visible) {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.txc-card__metric,
.txc-card__summary {
	margin: 0.75rem 0 0;
	color: var(--wp--preset--color--muted);
}

.txc-card__metric strong {
	color: var(--txc-link);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem;
}

.prose {
	max-width: var(--txc-content);
}

.prose > * + * {
	margin-top: 1em;
}

.prose :where(h2, h3) {
	margin-top: 1.75em;
}

.prose a {
	color: var(--txc-link);
}

.prose img {
	border-radius: var(--txc-radius);
}

.prose blockquote {
	margin-inline: 0;
	padding: 0.25rem 0 0.25rem 1.25rem;
	border-left: 4px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

.prose :where(ul, ol) {
	padding-left: 1.25em;
}

.prose li + li {
	margin-top: 0.375em;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
}

.prose :where(th, td) {
	padding: 0.625rem 0.75rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

/* 8. Utilities =========================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	border-radius: var(--txc-radius);
	box-shadow: var(--txc-shadow-md);
}

@media print {
	.site-header,
	.site-footer,
	.topbar,
	.txc-cta,
	.site-nav__backdrop {
		display: none !important;
	}
}

/* Related articles on a case study */
.related-articles {
	padding-block: var(--wp--preset--spacing--60, 4rem);
}

.related-articles__title {
	margin: 0 0 1.5rem;
}

.related-articles__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.related-article {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--txc-radius-lg);
	background: var(--wp--preset--color--base);
	transition: transform 0.2s var(--txc-ease), box-shadow 0.2s, border-color 0.2s;
}

.related-article:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--wp--preset--color--primary) 55%, transparent);
	box-shadow: var(--txc-shadow-md);
}

.related-article:has(.related-article__link:focus-visible) {
	outline: 3px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.related-article__media {
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--surface);
}

.related-article__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-article__body {
	display: grid;
	flex: 1;
	gap: 0.375rem;
	align-content: start;
	padding: 1.125rem 1.25rem 1.25rem;
}

.related-article__date {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
}

.related-article__heading {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
}

.related-article__link {
	color: inherit;
	text-decoration: none;
}

/* The whole card is clickable. */
.related-article__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.related-article__excerpt {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
}

.related-article__more {
	margin-top: 0.25rem;
	color: var(--txc-link);
	font-weight: 650;
}

/* Service landing pages: phone number in a focused header, sticky call-to-action bar on phones. */
.site-header__phone {
	font-weight: 600;
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__phone:hover {
	color: var(--txc-link, currentcolor);
}

.landing-bar {
	display: none;
}

@media (max-width: 782px) {
	.is-focused-landing .site-header__phone {
		display: none;
	}

	.has-landing-bar .landing-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 90;
		display: flex;
		gap: 0.5rem;
		padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--wp--preset--color--base, #fff) 94%, transparent);
		border-top: 1px solid rgb(0 0 0 / 0.08);
		backdrop-filter: blur(8px);
		box-shadow: 0 -4px 20px rgb(0 0 0 / 0.06);
	}

	.landing-bar .txc-button {
		justify-content: center;
		min-height: 2.75rem;
	}

	.landing-bar__call {
		display: inline-flex;
		gap: 0.375rem;
		align-items: center;
		flex: 0 0 auto;
	}

	.landing-bar__cta {
		flex: 1 1 auto;
	}

	.has-landing-bar .site-footer {
		padding-bottom: 4.5rem;
	}
}

@media print {
	.landing-bar {
		display: none !important;
	}
}

/* 9. Estate edition ======================================================
 * Contemporary layout, traditional manners: serif headings, square-shouldered
 * buttons, quiet borders, larger type and generous targets for an older
 * audience (WCAG AA contrast throughout, 18px body, 48px buttons).
 */

:root {
	--txc-radius: 6px;
	--txc-radius-lg: 10px;
	--txc-bronze: #7d5f27; /* brass dark enough for text on white and parchment (5:1+) */
	--txc-brass: #c8a15a;
	--txc-tap: 3rem;
}

html body {
	color: var(--wp--preset--color--contrast);
}

/* Links: always underlined in running text (clearer for older readers). */
.entry-content a,
.txc-prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--txc-link);
	outline-offset: 2px;
}

/* Buttons: squared, solid, no lift. */
.txc-button,
.wp-element-button,
.wpcf7-submit {
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--txc-radius);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	box-shadow: none;
}

.txc-button:hover,
.wp-element-button:hover,
.wpcf7-submit:hover {
	transform: none;
	box-shadow: none;
}

/* Top bar: firm, attorney and city are part of who is advertising: never truncated. */
.topbar {
	font-size: 0.9375rem;
	border-bottom: 2px solid var(--txc-brass);
}

@media (max-width: 47.99em) {
	.topbar__inner {
		flex-wrap: wrap;
		gap: 0.125rem 1rem;
		padding-block: 0.375rem;
	}

	.topbar {
		font-size: 0.875rem;
		line-height: 1.45;
	}

	.topbar__text {
		overflow: visible;
		white-space: normal;
		text-overflow: clip;
		flex: 1 1 12rem;
	}
}

/* Header: solid white, a hairline, larger menu text. */
.site-header {
	--txc-header-pad: 1.125rem;
	background: var(--wp--preset--color--base);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-logo__text {
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: 0;
}

.site-nav__list a {
	font-size: 1.0625rem;
	font-weight: 600;
	border-radius: var(--txc-radius);
}

.site-nav__list > .current-menu-item > a,
.site-nav__list > .current-menu-ancestor > a {
	box-shadow: inset 0 -2px 0 var(--txc-brass);
}

/* Phone number in the header: older visitors often prefer to call. */
.site-header__call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--txc-tap);
	padding: 0 0.25rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.0625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__call svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: var(--txc-bronze);
}

.site-header__call:hover {
	color: var(--txc-link);
}

@media (max-width: 1279px) {
	.site-header__call {
		display: none;
	}
}

/* Dropdown: sized to its longest item, wraps instead of overflowing, classic list. */
html:not(.txc-mobile-nav) .site-nav__list .sub-menu {
	width: max-content;
	min-width: 16rem;
	max-width: min(26rem, calc(100vw - 2 * var(--txc-gutter)));
	padding: 0.5rem 0;
	border-radius: var(--txc-radius-lg);
	border-top: 3px solid var(--txc-brass);
	box-shadow: 0 18px 40px -18px rgb(19 35 63 / 0.35);
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li {
	flex-wrap: nowrap;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu li + li {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--border) 70%, transparent);
}

/* nav.js puts two hidden items (the phone menu's Back row and "All …" link) at the
 * top of every dropdown, so the first visible item would get a divider above it. */
html:not(.txc-mobile-nav) .site-nav__list .sub-menu > .site-nav__subhead + li:not(.site-nav__overview),
html:not(.txc-mobile-nav) .site-nav__list .sub-menu > .site-nav__overview + li {
	border-top: 0;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu a {
	min-width: 0;
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border-radius: 0;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
	overflow-wrap: break-word;
}

html:not(.txc-mobile-nav) .site-nav__list .sub-menu a:hover,
html:not(.txc-mobile-nav) .site-nav__list .sub-menu .current-menu-item > a {
	background: var(--wp--preset--color--surface);
	box-shadow: inset 3px 0 0 var(--txc-brass);
	color: var(--txc-link);
}

/* A dropdown near the right edge opens leftwards (class set by nav.js; CSS fallback below). */
html:not(.txc-mobile-nav) .site-nav__list > li:nth-last-child(-n + 2) > .sub-menu {
	right: 0;
	left: auto;
}

/* Footer: bigger, calmer. */
.site-footer {
	font-size: 1rem;
	line-height: 1.65;
	border-top: 3px solid var(--txc-brass);
}

.site-footer .site-logo__text {
	color: var(--wp--preset--color--base);
}

.site-nav__toggle {
	border-radius: var(--txc-radius);
	min-height: var(--txc-tap);
	font-size: 1.0625rem;
}

html.txc-mobile-nav .site-nav__list a {
	font-size: 1.125rem;
	white-space: normal;
}

/* Footer legal links: five items wrap cleanly with comfortable targets. */
.site-footer__bottom {
	row-gap: 0.75rem;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
}

.site-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 47.99em) {
	.site-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
	}

	.site-footer__menu {
		flex-direction: column;
		gap: 0;
	}
}


/* Transparent masthead ===================================================
 * Top bar and header overlay the homepage hero as one unit: the header sits
 * directly under the top bar (never on top of it) and, when sticky, slides
 * up to the top once the page scrolls. The hero clears exactly the masthead.
 */

.has-transparent-header .topbar {
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 101;
	background: rgb(11 22 41 / 0.55);
	border-bottom-color: rgb(200 161 90 / 0.55);
}

.site-header.is-transparent {
	top: var(--txc-topbar-h, 2.375rem);
	border-bottom: 1px solid rgb(255 255 255 / 0.14);
	transition: top 0.25s var(--txc-ease), transform 0.25s var(--txc-ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

html:not(.txc-mobile-nav) .site-header.is-transparent.d-sticky,
html:not(.txc-mobile-nav) .site-header.is-transparent.d-smart,
html.txc-mobile-nav .site-header.is-transparent.m-sticky,
html.txc-mobile-nav .site-header.is-transparent.m-smart {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--txc-topbar-h, 2.375rem));
}

html:not(.txc-mobile-nav) .site-header.is-transparent.is-scrolled.d-sticky,
html:not(.txc-mobile-nav) .site-header.is-transparent.is-scrolled.d-smart,
html.txc-mobile-nav .site-header.is-transparent.is-scrolled.m-sticky,
html.txc-mobile-nav .site-header.is-transparent.is-scrolled.m-smart {
	top: var(--wp-admin--admin-bar--height, 0px);
	box-shadow: 0 6px 24px -14px rgb(19 35 63 / 0.4);
}

/* Scrolled: solid white again, so the dark text has its background back. */
.site-header.is-transparent.is-scrolled {
	background: var(--wp--preset--color--base);
}

/* White on the hero; the mobile drawer (white panel) keeps its dark text. */
html:not(.txc-mobile-nav) .site-header.is-transparent:not(.is-scrolled) .site-nav__list > li > a,
html:not(.txc-mobile-nav) .site-header.is-transparent:not(.is-scrolled) .site-nav__list > li > .site-nav__sub-toggle,
.site-header.is-transparent:not(.is-scrolled) .site-header__call,
.site-header.is-transparent:not(.is-scrolled) .site-logo {
	color: #fff;
}

.site-header.is-transparent:not(.is-scrolled) .site-header__call svg {
	fill: var(--txc-brass);
}

html:not(.txc-mobile-nav) .site-header.is-transparent:not(.is-scrolled) .site-nav__list > .current-menu-item > a,
html:not(.txc-mobile-nav) .site-header.is-transparent:not(.is-scrolled) .site-nav__list > li > a:hover {
	color: #f0dcae;
}

html.txc-nav-open .site-header.is-transparent .site-logo {
	color: var(--wp--preset--color--contrast);
}

/* First section clears the masthead and nothing more; on wider screens the hero
 * fills the first screen with its content centred, so headline and buttons land
 * above the fold. */
.has-transparent-header .site-main .txc-sec.is-first {
	--txc-sec-space: clamp(2rem, 4vw, 3.5rem);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding-top: calc(var(--txc-masthead-h, 8.5rem) + clamp(1.75rem, 5vh, 3.5rem));
}

/* Wider screens: the hero photo or video fills most of the first screen below the content. */
@media (min-width: 48em) and (min-height: 40em) {
	.has-transparent-header .site-main .txc-sec.is-first {
		min-height: min(90svh, 52rem);
	}
}

.has-transparent-header .site-main .txc-sec.is-first > .txc-sec__inner {
	width: min(100% - 2 * var(--txc-gutter), var(--txc-wrap, 80rem));
}

/* Any first section (transparent header or not): less empty space above the content. */
.txc-sections-page .site-main .txc-sec.is-first.txc-sp--lg,
.txc-sections-page .site-main .txc-sec.is-first.txc-sp--xl {
	--txc-sec-space: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 47.99em) {
	.has-transparent-header .site-main .txc-sec.is-first {
		padding-top: calc(var(--txc-masthead-h, 8.5rem) + 1.25rem);
	}
}

/* Form fields: every control the same height, padding and border in every browser.
 * Safari draws <select> natively and ignores height/padding, so the native look is
 * switched off and the arrow is drawn here. Borders meet the 3:1 contrast for
 * form controls (WCAG 1.4.11), easier to see for older eyes. */
:where(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"], [type="file"], [type="hidden"]), select, textarea) {
	box-sizing: border-box;
	min-height: 3rem;
	padding: 0.65rem 0.875rem;
	border: 1px solid #8a93a3;
	border-radius: var(--txc-radius);
	background-color: #fff;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 1.0625rem;
	line-height: 1.5;
}

select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 2.75rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2313233f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
	background-size: 1.125rem 1.125rem;
	cursor: pointer;
}

select::-ms-expand {
	display: none;
}

select[multiple] {
	height: auto;
	padding-right: 0.875rem;
	background-image: none;
}

:where(input, select, textarea):hover {
	border-color: #5f6b7d;
}

input[type="checkbox"],
input[type="radio"] {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--txc-link, #1f4e8c);
}

body :is(input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="range"], [type="file"], [type="hidden"]), select, textarea) {
	font-size: 1.0625rem;
	line-height: 1.5;
}

/* Safety net: if a phone or browser still adds its own detected links, they take the surrounding style. */
a[x-apple-data-detectors],
a[x-apple-data-detectors-type],
.txc-btn a,
.txc-button a {
	color: inherit !important;
	font: inherit !important;
	text-decoration: inherit !important;
}

a[href^="tel:"].txc-btn,
a[href^="tel:"].txc-button {
	-webkit-text-fill-color: currentColor;
}

/* PLBK: homepage hero fits the first screen ===============================
 * The PLBK hero carries more than the SMN one (eyebrow, two-line headline, a
 * longer paragraph, two buttons and three chips). Sizes follow the screen's
 * height as well as its width, so the whole left column (down to the chips)
 * sits above the fold on laptop screens from 1280×720 up. */
.home .site-main .txc-sec.is-first {
	--txc-sec-space: clamp(1.5rem, 4.5vh, 3.5rem);
}

.home .site-main .txc-sec.is-first .txc-hero {
	gap: clamp(1.5rem, 3vw, 3rem);
}

.home .site-main .txc-sec.is-first .txc-hero__copy {
	gap: clamp(0.75rem, 1.9vh, 1.125rem);
}

.home .site-main .txc-sec.is-first .txc-hero__title {
	font-size: clamp(2rem, min(3.5vw, 6.2vh), 3.375rem);
	line-height: 1.08;
}

.home .site-main .txc-sec.is-first .txc-hero__text {
	font-size: clamp(1rem, min(1.25vw, 2.3vh), 1.1875rem);
	line-height: 1.55;
	max-width: 38rem;
}

.home .site-main .txc-sec.is-first .txc-pill {
	font-size: 0.8125rem;
}

.home .site-main .txc-sec.is-first .txc-hero__chips {
	margin-top: 0;
	font-size: 0.9375rem;
}

/* Phones: the hero stacks, so the photo goes below and the copy stays compact. */
@media (max-width: 47.99em) {
	.home .site-main .txc-sec.is-first .txc-hero__title {
		font-size: clamp(1.875rem, 8.2vw, 2.25rem);
	}

	.home .site-main .txc-sec.is-first .txc-hero__text {
		font-size: 1rem;
		line-height: 1.5;
	}

	.home .site-main .txc-sec.is-first .txc-hero__chips {
		gap: 0.25rem 1.25rem;
	}
}

/* PLBK: inner pages start closer to the header =============================
 * The breadcrumbs open the first section, so the full section spacing above
 * them read as empty space. Bottom spacing is unchanged. */
.txc-sections-page:not(.home):not(.has-transparent-header) .site-main .txc-sec.is-first {
	padding-top: clamp(1.25rem, 2.6vw, 2.25rem);
}

/* PLBK: attorney profile pages, square portrait ============================ */
.is-attorney-page .site-main .txc-sec.is-first .txc-hero__media {
	aspect-ratio: 1 / 1;
}

.is-attorney-page .site-main .txc-sec.is-first .txc-hero__media img {
	object-position: center 20%; /* Keep the face in frame when a tall photo is cropped. */
}

/* Phones: the portrait spans the screen, with a light margin each side, centred. */
@media (max-width: 47.99em) {
	.is-attorney-page .site-main .txc-sec.is-first .txc-hero__media {
		width: calc(100vw - 2rem);
		max-width: none;
		justify-self: center;
		margin-inline: calc(50% - 50vw + 1rem);
	}
}

/* PLBK: compact footer =====================================================
 * One row for logo, tagline and contact on wide screens; the address appears
 * once, in the advertising disclosure; tighter disclosure and legal bar. */
.site-footer__inner {
	gap: 1rem 2.5rem;
	padding: 2rem var(--txc-gutter) 1.5rem;
}

.site-footer__brand {
	gap: 0.5rem;
}

.site-footer__tagline {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.site-footer .contact-list {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 64em) {
	/* No widget columns: logo, tagline and contact share one row. */
	.site-footer__inner--cols-0 .site-footer__brand {
		max-width: none;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 2.5rem;
	}

	.site-footer__inner--cols-0 .site-footer__tagline {
		max-width: 30rem;
	}
}

.site-footer .txc-disclosure {
	font-size: 0.8125rem;
	line-height: 1.5;
}

.site-footer .txc-disclosure__inner {
	padding-block: 0.875rem;
}

.site-footer .txc-disclosure p {
	display: inline;
	margin: 0;
}

.site-footer .txc-disclosure__extra::before {
	content: " ";
}

.site-footer__bottom {
	padding-block: 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
	font-size: 0.8125rem;
}

.site-footer__menu {
	gap: 0 1.25rem;
}

.site-footer__menu a {
	min-height: 2.25rem;
	font-size: 0.8125rem;
}

@media (max-width: 47.99em) {
	.site-footer__inner {
		padding-top: 1.75rem;
	}

	.site-footer__bottom {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 0.25rem;
	}

	/* Legal links wrap in rows instead of one per line; each target stays 40px tall. */
	.site-footer__menu {
		flex-direction: row;
		gap: 0 1.25rem;
	}

	.site-footer__menu a {
		min-height: 2.5rem;
	}
}
