/**
Theme Name: Key Disability
Author: SMB Team
Description: Astra child theme for Key Disability, PLLC — Social Security Disability law.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: key-disability
Template: astra
*/

/* ==========================================================================
   Design tokens — Homepage-2d.dc.html
   ========================================================================== */
:root {
	--kd-brand: #142a4a;
	--kd-alt-brand: #47739d;
	--kd-primary: #e1e1e1;
	--kd-accent: #f7b854;
	--kd-headings: #142a4a;
	--kd-body: #535353;
	--kd-panel: #eef4fc;
	--kd-rule: #b8c4d6;
	--kd-gold: linear-gradient(155deg, #fbd98a 0%, #f7b854 22%, #d89330 50%, #f3c56a 72%, #eaa83e 100%);
	--kd-gold-hover: linear-gradient(155deg, #fce3a6 0%, #e0a23f 22%, #c6811f 50%, #eaae4f 72%, #d89330 100%);
	--kd-font-heading: 'Source Serif 4', Georgia, serif;
	--kd-font-body: 'Public Sans', system-ui, sans-serif;
}

/* ==========================================================================
   Shared typography primitives
   ========================================================================== */

/* Gold gradient pill above section headings. */
.kd-eyebrow .uagb-heading-text {
	display: inline-block;
	margin: 0;
	padding: 4px 18px;
	border-radius: 999px;
	background: var(--kd-gold);
	font-family: var(--kd-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kd-headings);
}

.kd-h2 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 48px;
	font-weight: 500;
	line-height: 1.14;
	color: var(--kd-headings);
}

/* Spectra emits no per-block CSS for advanced-heading alignment, so centred
   section headers are handled here. */
.kd-sec-head--center .wp-block-uagb-advanced-heading,
.kd-sec-head--center .uagb-heading-text {
	text-align: center;
}

.kd-h2--lg .uagb-heading-text {
	font-size: 56px;
	line-height: 1.08;
}

.kd-h2--light .uagb-heading-text {
	color: #fff;
}

.kd-hero-h1 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 56px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--kd-headings);
	text-wrap: balance;
}

.kd-body {
	max-width: 62ch;
	margin: 0;
	font-size: 19px;
	line-height: 32px;
	color: var(--kd-body);
}

/* Square gold buttons. Spectra emits its own button rules, hence !important. */
.kd-btn-gold .uagb-buttons-repeater,
.kd-buttons .uagb-buttons-repeater {
	padding: 15px 30px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--kd-gold) !important;
	box-shadow: none !important;
	font-family: var(--kd-font-body) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	color: var(--kd-headings) !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.kd-btn-gold .uagb-buttons-repeater:hover,
.kd-buttons .uagb-buttons-repeater:hover {
	background: var(--kd-gold-hover) !important;
	color: var(--kd-headings) !important;
}

.kd-btn-wrap {
	width: auto !important;
}

/* Section reveal — hero and its review strip are exempt. */
@keyframes kd-reveal {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.kd-sec:not(.kd-hero):not(.kd-hero-reviews) {
	animation: kd-reveal 0.7s ease both;
}

@supports (animation-timeline: view()) {
	.kd-sec:not(.kd-hero):not(.kd-hero-reviews) {
		animation-timeline: view();
		/* Was `entry 5% entry 70%`: a section was still only ~16% opaque when
		   its first screenful was showing and didn't reach full opacity until
		   its top was a third of the way up the viewport. On the navy team
		   band that read as a haze over the photographs rather than as motion.
		   Finishing by 25% of entry means a section is solid almost as soon as
		   it is legible. */
		animation-range: entry 0% entry 25%;
	}
}

/* On a phone a section is about as tall as the screen, so any entry-based fade
   covers most of what's being read. The reveal is a desktop refinement. */
@media (max-width: 921px) {
	.kd-sec {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kd-sec {
		animation: none !important;
	}
}

/* Hairline divider between light sections. */
.kd-content + .kd-content::before,
.kd-reviews + .kd-content::before {
	content: '';
	display: block;
}

/* ==========================================================================
   1–2. Hero + overlapping review cards
   ========================================================================== */

.kd-hero {
	position: relative;
	overflow: hidden;
}

/* White scrim so the headline stays readable over the photo. */
.kd-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 78%);
	pointer-events: none;
}

.kd-hero > .uagb-container-inner-blocks-wrap {
	position: relative;
	z-index: 2;
}

.kd-hero-copy {
	max-width: 560px;
}

.kd-hero-reviews {
	position: relative;
	z-index: 5;
}

.kd-review-cards {
	background: #fff;
	box-shadow: 0 30px 70px rgba(20, 42, 74, 0.22);
}

.kd-review-card + .kd-review-card {
	border-left: 1px solid var(--kd-primary);
}

.kd-stars {
	margin: 0;
	font-size: 16px;
	letter-spacing: 0.2em;
	color: var(--kd-accent);
}

.kd-review-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 21px;
	line-height: 32px;
	color: var(--kd-headings);
}

.kd-review-cite {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--kd-alt-brand);
}

/* ==========================================================================
   3. Content sections — text + framed image
   ========================================================================== */

.kd-content-media {
	position: relative;
	align-self: center;
}

/* Steel-blue bracket offset behind the photo. */
.kd-frame-r::before,
.kd-frame-l::before {
	content: '';
	position: absolute;
	top: -24px;
	bottom: -24px;
	width: 75%;
	border-top: 4px solid var(--kd-alt-brand);
	border-bottom: 4px solid var(--kd-alt-brand);
	pointer-events: none;
}

.kd-frame-r::before {
	right: -24px;
	border-right: 4px solid var(--kd-alt-brand);
}

.kd-frame-l::before {
	left: -24px;
	border-left: 4px solid var(--kd-alt-brand);
}

.kd-content-img {
	position: relative;
	z-index: 1;
	width: 100%;
}

/* Spectra's per-block image CSS sets height:auto at higher specificity, so the
   design's fixed crop heights have to be forced. */
.kd-content-img .wp-block-uagb-image__figure,
.kd-content-img img {
	width: 100% !important;
	margin: 0;
	display: block;
}

.kd-content-img img {
	height: 500px !important;
	object-fit: cover;
}

.kd-content--right .kd-content-img img {
	height: 520px !important;
}

.kd-content--left .kd-content-img img {
	height: 480px !important;
}

/* Two-column text variant (content 3 and 5). Scoped to the h2 — an unscoped
   .uagb-heading-text also matched the eyebrow pill and blew it up to 52px. */
.kd-content--split .kd-split-head .kd-h2 .uagb-heading-text {
	font-size: 52px;
	line-height: 1.1;
}

.kd-content--split .kd-body {
	max-width: none;
}

/* ==========================================================================
   4. Practice areas — scroll-snap rail
   ========================================================================== */

.kd-pa .kd-rail {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.kd-pa .kd-rail::-webkit-scrollbar {
	display: none;
}

.kd-pa-card {
	position: relative;
	flex: 0 0 340px !important;
	width: 340px !important;
	max-width: 340px;
	scroll-snap-align: start;
}

.kd-pa-img {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.kd-pa-img .wp-block-uagb-image__figure {
	margin: 0;
}

.kd-pa-img img {
	display: block;
	width: 100% !important;
	height: 340px !important;
	object-fit: cover;
}

/* Navy scrim so the card title reads over any photo. */
.kd-pa-img::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 42, 74, 0) 18%, rgba(20, 42, 74, 0.55) 48%, rgba(20, 42, 74, 0.92) 78%, rgba(20, 42, 74, 0.97) 100%);
	pointer-events: none;
}

.kd-pa-body {
	position: absolute !important;
	left: 28px;
	right: 28px;
	bottom: 44px;
	width: auto !important;
	pointer-events: none;
}

.kd-pa-title .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.22;
	text-align: center;
	color: #fff;
}

.kd-pa-desc {
	max-height: 0;
	margin: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(10px);
	transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.3s ease;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
}

.kd-pa-card:hover .kd-pa-desc,
.kd-pa-card:focus-within .kd-pa-desc {
	max-height: 140px;
	opacity: 1;
	transform: none;
}

/* Gold circular arrow badge straddling the card's bottom edge. */
.kd-pa-card::after {
	content: '→';
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--kd-accent);
	color: var(--kd-brand);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
}

/* Rail arrows sit below as plain glyphs, not filled buttons. */
.kd-rail-buttons .uagb-buttons-repeater {
	padding: 0 !important;
	background: none !important;
	font-size: 24px !important;
	color: var(--kd-brand) !important;
}

.kd-rail-buttons .uagb-buttons-repeater:hover {
	background: none !important;
	color: var(--kd-alt-brand) !important;
}

.kd-rail-buttons .uagb-buttons__wrap {
	justify-content: center;
	gap: 56px;
}

.kd-rail-buttons [aria-disabled='true'] {
	opacity: 0.35;
	pointer-events: none;
}

/* ==========================================================================
   5. Client success stories / 7. Team / 9. Blog — navy photo sections
   ========================================================================== */

/* Navy gradient base with the dotted texture at 32% on top — the design's
   layer order. Putting the texture underneath a near-opaque navy (the previous
   approach) left only ~12% of the pattern visible. */
.kd-navy {
	position: relative;
	background-image: linear-gradient(135deg, #142b49 0%, #0b1d53 100%);
}

.kd-navy::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: url('/wp-content/uploads/2026/09/kd-section-bg-scaled.jpg') center / cover no-repeat;
	opacity: 0.32;
	pointer-events: none;
}

/* Design mirrors the texture per section so it doesn't read as a repeat. */
.kd-team::after {
	transform: rotate(180deg);
}

.kd-blog::after {
	transform: scaleX(-1);
}

.kd-navy > * {
	position: relative;
	z-index: 2;
}

.kd-reviews .kd-trustindex {
	width: 100%;
}

.kd-reviews .kd-trustindex .ti-widget {
	--ti-text-color: #fff;
}

.kd-team {
	overflow: hidden;
}

/* Photo grid runs to the right viewport edge. The heading sits 48px in — the
   design's own inset. Deriving it from the 1280 container instead pushed the
   copy 368px in at 1920 and wrapped the headline. */
.kd-team > .uagb-container-inner-blocks-wrap {
	max-width: none !important;
}

.kd-team-head {
	padding: 96px 0 96px 48px !important;
}

/* Fluid headline: fills the column on wide screens, still one line at 1280. */
.kd-team-head .kd-h2 .uagb-heading-text {
	font-size: clamp(44px, 4vw, 76px);
	line-height: 1.06;
}

.kd-team-grid {
	align-items: stretch;
}

.kd-team-card {
	position: relative;
	overflow: hidden;
	/* Deep navy rather than the mockup's light grey: these are full-bleed
	   photos, so any sub-pixel seam should disappear into the section. */
	background: #16294a;
}

/* Portrait-orientation headshots leave the figure narrower than the card
   unless it is forced to fill. */
.kd-team-card .wp-block-uagb-image__figure {
	width: 100% !important;
	margin: 0;
}

/* Square cards — the section grows to suit, per client direction. */
.kd-team-img img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: top center;
}

/* Name/title/bio revealed on hover under a navy scrim. */
.kd-team-body {
	position: absolute !important;
	inset: 0;
	width: auto !important;
	background: linear-gradient(180deg, rgba(20, 42, 74, 0) 30%, rgba(20, 42, 74, 0.6) 62%, rgba(20, 42, 74, 0.96) 100%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.kd-team-card:hover .kd-team-body,
.kd-team-card:focus-within .kd-team-body {
	opacity: 1;
}

.kd-team-name .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
	color: #fff;
}

.kd-team-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kd-accent);
}

.kd-team-bio {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

/* ==========================================================================
   6. Why choose us
   ========================================================================== */

.kd-why-grid {
	border-top: 1px solid var(--kd-brand);
}

.kd-why-item {
	width: calc(50% - 36px) !important;
	padding: 34px 0 !important;
	border-bottom: 1px solid var(--kd-rule);
}

/* Spectra forces direct container children to width:100%, so the icon badge
   has to reclaim its fixed size or it eats the whole row. */
.kd-why-item > .kd-why-icon {
	flex: 0 0 62px !important;
	width: 62px !important;
	height: 62px;
	border-radius: 50%;
	background: var(--kd-brand);
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.kd-why-icon .uagb-svg-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
}

.kd-why-icon svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.kd-why-title .uagb-heading-text {
	margin: 0 0 12px;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--kd-headings);
}

.kd-why-body {
	margin: 0;
	font-size: 18px;
	line-height: 29px;
	color: var(--kd-body);
}

.kd-why-text {
	flex: 1 1 auto;
	min-width: 0;
}

/* ==========================================================================
   8. Team photo band
   ========================================================================== */

.kd-band {
	overflow: hidden;
}

.kd-band-img,
.kd-band-img .wp-block-uagb-image__figure {
	width: 100%;
	margin: 0;
}

.kd-band-img img {
	display: block;
	width: 100% !important;
	height: 298px !important;
	object-fit: cover;
	object-position: center top;
	filter: drop-shadow(0 0 30px rgba(15, 26, 43, 0.6)) drop-shadow(0 0 8px rgba(15, 26, 43, 0.45)) drop-shadow(0 8px 16px rgba(15, 26, 43, 0.4));
}

/* ==========================================================================
   9. Our latest blogs — magazine layout
   ========================================================================== */

.kd-blog-lead-img,
.kd-blog-lead-img .wp-block-uagb-image__figure {
	width: 100%;
	margin: 0;
}

.kd-blog-lead-img img {
	display: block;
	width: 100% !important;
	height: 400px !important;
	object-fit: cover;
}

.kd-blog-date {
	margin: 24px 0 12px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #e8b96a;
}

.kd-blog-lead-title .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 36px;
	font-weight: 500;
	line-height: 1.16;
	color: #fff;
}

.kd-blog-item-title .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.kd-blog-excerpt {
	margin: 0;
	font-size: 18px;
	line-height: 29px;
	color: rgba(220, 228, 238, 0.72);
}

.kd-readmore {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
}

.kd-blog-list {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.kd-blog-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.kd-blog-item .kd-blog-date {
	margin: 0 0 10px;
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */

.kd-faq-panel {
	width: 100% !important;
}

.kd-faq-list {
	width: 100%;
	max-width: 900px;
	border-top: 1px solid var(--kd-brand);
}

/* Item borders and icon side come from block attributes; spacing is forced
   past Spectra's default 10px padding. */
.kd-faq-list .uagb-faq-questions {
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 26px 0 !important;
}

.kd-faq-list .uagb-faq-icon-wrap {
	margin: 0 !important;
}

.kd-faq-list .uagb-question {
	font-family: var(--kd-font-heading);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--kd-headings);
}

.kd-faq-list .uagb-faq-icon-wrap svg {
	width: 18px;
	height: 18px;
	fill: var(--kd-accent);
}

.kd-faq-list .uagb-faq-content {
	padding: 0 0 28px !important;
}

.kd-faq-list .uagb-faq-content p {
	margin: 0;
	font-size: 18px;
	line-height: 31px;
	color: var(--kd-body);
}

/* ==========================================================================
   11. Contact
   ========================================================================== */

.kd-contact-phone {
	margin: 0;
}

.kd-contact-phone a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 600;
	color: var(--kd-brand);
	text-decoration: none !important;
}

/* Handset glyph ahead of the number, as in the design. */
.kd-contact-phone a::before {
	content: '';
	flex: none;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23142A4A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kd-contact-phone a:hover {
	color: var(--kd-alt-brand);
}

/* Gravity Forms — underline-only fields per the design. */
.kd-contact-form .gform_wrapper .gform_fields {
	grid-row-gap: 32px;
	grid-column-gap: 40px;
}

.kd-contact-form .gform_wrapper .gfield_label {
	margin-bottom: 8px;
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kd-alt-brand);
}

/* Design shows no required markers. Hidden visually, still announced to
   screen readers. */
.kd-contact-form .gform_wrapper .gfield_required {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.kd-contact-form .gform_wrapper input[type='text'],
.kd-contact-form .gform_wrapper input[type='tel'],
.kd-contact-form .gform_wrapper input[type='email'],
.kd-contact-form .gform_wrapper textarea {
	padding: 10px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--kd-brand) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: var(--kd-font-body);
	font-size: 18px;
	color: var(--kd-headings);
}

.kd-contact-form .gform_wrapper input::placeholder,
.kd-contact-form .gform_wrapper textarea::placeholder {
	color: #9aa4b1;
}

.kd-contact-form .gform_wrapper .gform_footer {
	margin-top: 8px;
	padding: 0;
}

.kd-contact-form .gform_wrapper .gform_button {
	padding: 16px 40px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--kd-gold) !important;
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kd-headings) !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.kd-contact-form .gform_wrapper .gform_button:hover {
	background: var(--kd-brand) !important;
	color: #fff !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 921px) {
	.kd-hero-h1 .uagb-heading-text {
		font-size: 44px;
	}

	.kd-h2 .uagb-heading-text,
	.kd-h2--lg .uagb-heading-text,
	.kd-content--split .kd-split-head .kd-h2 .uagb-heading-text {
		font-size: 36px;
	}

	.kd-hero::after {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.35) 100%);
	}

	.kd-review-card + .kd-review-card {
		border-left: 0;
		border-top: 1px solid var(--kd-primary);
	}

	.kd-frame-r::before,
	.kd-frame-l::before {
		display: none;
	}

	.kd-content-img img,
	.kd-content--right .kd-content-img img,
	.kd-content--left .kd-content-img img {
		height: 360px !important;
	}

	.kd-why-item {
		width: 100% !important;
	}

	.kd-team-head {
		padding: 64px 24px !important;
	}

	.kd-team-head .kd-h2 .uagb-heading-text {
		font-size: 40px;
	}

	.kd-team > .uagb-container-inner-blocks-wrap {
		max-width: min(100%, 1280px) !important;
	}

	.kd-team-body {
		opacity: 1;
	}

	.kd-blog-lead-img img {
		height: 280px !important;
	}

	.kd-band-img img {
		height: 220px !important;
	}
}

@media (max-width: 600px) {
	.kd-hero-h1 .uagb-heading-text {
		font-size: 40px;
	}

	.kd-h2 .uagb-heading-text,
	.kd-h2--lg .uagb-heading-text,
	.kd-content--split .kd-split-head .kd-h2 .uagb-heading-text {
		font-size: 32px;
	}

	.kd-body {
		font-size: 17px;
		line-height: 28px;
	}

	.kd-pa-card {
		flex: 0 0 280px !important;
		width: 280px !important;
	}

	.kd-team-card {
		width: 100% !important;
	}

	.kd-faq-list .uagb-question {
		font-size: 21px;
	}

	.kd-review-text {
		font-size: 19px;
		line-height: 29px;
	}
}

/* ==========================================================================
   Header — native Astra Header Builder
   ========================================================================== */

/* 12px navy strip above the header, as in the design. */
.site-header::before {
	content: '';
	display: block;
	height: 12px;
	background: var(--kd-brand);
}

.ast-primary-header-bar,
.site-header {
	background: #fff;
}

.ast-primary-header-bar .site-logo-img img {
	width: 134px;
	height: auto;
}

/* Nav: uppercase, letter-spaced, gold on hover. */
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--kd-headings);
}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link:hover,
.ast-builder-menu-1 .main-header-menu > .menu-item:hover > .menu-link {
	color: var(--kd-accent);
}

/* Gold call button, separated by a hairline as in the design. */
.ast-primary-header-bar .ast-builder-button-wrap {
	padding-left: 20px;
	border-left: 1px solid var(--kd-primary);
}

.ast-primary-header-bar .ast-custom-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--kd-gold) !important;
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--kd-headings) !important;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.ast-primary-header-bar .ast-custom-button:hover {
	background: var(--kd-gold-hover) !important;
	color: var(--kd-headings) !important;
}

.ast-primary-header-bar .ast-custom-button::before {
	content: '';
	flex: none;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23142A4A' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}


/* Keep all seven nav items on one line beside the call button, as designed. */
.ast-primary-header-bar .site-header-primary-section-right,
.ast-primary-header-bar .ast-builder-menu-1 .main-header-menu {
	flex-wrap: nowrap;
}

.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
	padding-left: 8px;
	padding-right: 8px;
	white-space: nowrap;
}

.ast-primary-header-bar .ast-container {
	max-width: 1280px;
	padding-left: 32px;
	padding-right: 32px;
}

/* ==========================================================================
   Footer — native Astra Footer Builder
   ========================================================================== */

/* Row background colours are set in Astra's footer options; only spacing and
   the hairline divider live here. */
.site-footer {
	color: rgba(255, 255, 255, 0.75);
}

.site-above-footer-wrap {
	padding: 72px 0 48px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-primary-footer-wrap {
	padding: 26px 0;
}

.site-below-footer-wrap {
	background: #0e1f38;
	padding: 22px 0;
}

/* Above-row column widths come from Astra's 2-rheavy grid (1fr 2fr). */

/* Brand column */
.kd-foot-logo {
	display: block;
	width: auto;
	height: 104px;
	/* Navy mark inverted to white for the dark footer. */
	filter: brightness(0) invert(1);
}

.kd-foot-tagline {
	margin: 24px 0 0;
	font-size: 18px;
	line-height: 29px;
	color: rgba(255, 255, 255, 0.75);
}

.kd-foot-social {
	display: flex;
	gap: 12px;
	margin-top: 26px;
}

/* Astra sanitises <svg> out of footer HTML options, so every footer glyph is
   drawn as a CSS mask instead. */
.kd-social {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease;
}

.kd-social::before {
	content: '';
	width: 24px;
	height: 24px;
	background-color: var(--kd-accent);
	-webkit-mask: var(--kd-icon) no-repeat center / contain;
	mask: var(--kd-icon) no-repeat center / contain;
	transition: background-color 0.2s ease;
}

.kd-social:hover {
	background: var(--kd-accent);
}

.kd-social:hover::before {
	background-color: var(--kd-headings);
}

.kd-social--facebook {
	--kd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M13.5 21v-7.5H16l.5-3h-3V8.6c0-.8.2-1.3 1.4-1.3H16.6V4.6c-.3 0-1.4-.1-2.6-.1-2.6 0-4.4 1.6-4.4 4.5v1.5H7v3h2.6V21h3.9z'/%3E%3C/svg%3E");
}

.kd-social--linkedin {
	--kd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M4.5 9h3.2v11H4.5V9zm1.6-5a1.9 1.9 0 110 3.8 1.9 1.9 0 010-3.8zM10 9h3.1v1.5h.05c.43-.8 1.5-1.65 3.1-1.65 3.3 0 3.9 2.1 3.9 4.9V20h-3.2v-5.6c0-1.35-.03-3.05-1.9-3.05-1.9 0-2.2 1.45-2.2 2.95V20H10V9z'/%3E%3C/svg%3E");
}

.kd-social--instagram {
	--kd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 4.2c2.5 0 2.8 0 3.8.06 1 .05 1.5.2 1.9.36.5.2.85.43 1.2.8.37.34.6.7.8 1.2.15.4.3.9.35 1.9.05 1 .06 1.3.06 3.8s0 2.8-.06 3.8c-.05 1-.2 1.5-.35 1.9-.2.5-.43.85-.8 1.2-.35.37-.7.6-1.2.8-.4.15-.9.3-1.9.35-1 .05-1.3.06-3.8.06s-2.8 0-3.8-.06c-1-.05-1.5-.2-1.9-.35-.5-.2-.85-.43-1.2-.8-.37-.35-.6-.7-.8-1.2-.16-.4-.3-.9-.36-1.9C4.2 14.8 4.2 14.5 4.2 12s0-2.8.06-3.8c.05-1 .2-1.5.36-1.9.2-.5.43-.85.8-1.2.34-.37.7-.6 1.2-.8.4-.16.9-.3 1.9-.36C9.2 4.2 9.5 4.2 12 4.2zm0 3.6a4.2 4.2 0 100 8.4 4.2 4.2 0 000-8.4zm0 6.93a2.73 2.73 0 110-5.46 2.73 2.73 0 010 5.46zM17.3 7.7a1 1 0 11-2 0 1 1 0 012 0z'/%3E%3C/svg%3E");
}

.kd-social--youtube {
	--kd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M21.6 8.2s-.2-1.4-.8-2c-.75-.8-1.6-.8-2-.85C16.4 5.2 12 5.2 12 5.2h-.02s-4.4 0-7.2.15c-.4.05-1.25.05-2 .85-.6.6-.78 2-.78 2S1.8 9.8 1.8 11.5v1c0 1.6.2 3.3.2 3.3s.2 1.4.78 2c.75.8 1.74.77 2.18.85 1.6.15 6.84.2 6.84.2s4.4 0 7.2-.16c.4-.05 1.25-.05 2-.85.6-.6.8-2 .8-2s.2-1.65.2-3.3v-1c0-1.7-.2-3.34-.2-3.34zM9.9 14.9V9.4l5.6 2.77-5.6 2.73z'/%3E%3C/svg%3E");
}

/* Offices column */
.kd-offices-title {
	margin: 0 0 22px;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.kd-office-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	padding-bottom: 16px;
	margin-bottom: 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.kd-office-tab {
	padding: 4px 0;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	cursor: pointer;
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.6);
	transition: color 0.2s ease, border-color 0.2s ease;
}

.kd-office-tab[aria-selected='true'] {
	color: #fff;
	border-bottom-color: var(--kd-accent);
}

.kd-office-panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	align-items: start;
}

/* display:grid above would otherwise beat the hidden attribute, leaving every
   state's offices on screen at once. */
.kd-office-panel[hidden] {
	display: none !important;
}

.kd-office-map {
	height: 180px;
	background: rgba(255, 255, 255, 0.08);
}

.kd-office-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: grayscale(0.25);
}

.kd-office-city {
	margin: 16px 0 0;
	font-family: var(--kd-font-heading);
	font-size: 24px;
	font-weight: 500;
	color: #fff;
}

.kd-office-addr {
	display: flex;
	gap: 10px;
	margin: 8px 0 0;
	font-size: 17px;
	line-height: 27px;
	color: rgba(255, 255, 255, 0.75);
}

.kd-office-addr::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 5px;
	background-color: rgba(255, 255, 255, 0.75);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kd-office-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 600;
	color: var(--kd-accent);
	text-decoration: none;
	white-space: nowrap;
}

.kd-office-phone::before {
	content: '';
	flex: none;
	width: 18px;
	height: 18px;
	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='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.9.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kd-office-phone:hover {
	color: #fff;
}

/* The number comes from a [company-phone-N] shortcode, which renders its own link inside the span. */
.kd-office-phone a {
	color: inherit;
	text-decoration: none;
}

/* Astra centres footer builder elements; the design left-aligns both columns. */
.site-above-footer-wrap .ast-builder-html-element,
.kd-foot-brand,
.kd-offices {
	text-align: left;
}

.kd-office-city,
.kd-offices-title {
	text-align: left;
}

/* Copyright row */
.ast-footer-copyright,
.ast-footer-copyright p {
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.65);
}

.ast-footer-copyright a {
	color: rgba(255, 255, 255, 0.65);
	text-decoration: underline;
}

.ast-footer-copyright a:hover {
	color: #fff;
}

.kd-smb-logo {
	height: 26px;
	width: auto;
}

/* Disclaimer band */
.kd-disclaimer {
	margin: 0;
	font-size: 16px;
	line-height: 21px;
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 921px) {
	.kd-office-panel {
		grid-template-columns: 1fr;
	}

	.kd-office-tabs {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		gap: 4px;
	}

	.kd-office-tab {
		text-align: left;
	}
}

/* ==========================================================================
   Inner pages — hero + 2/3 content + 1/3 sticky sidebar form
   ========================================================================== */

/* Hero: homepage treatment (full-bleed photo behind a white scrim) with
   nothing but a centred H1. */
.kd-inner-hero {
	position: relative;
	overflow: hidden;
}

.kd-inner-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.78) 100%);
	pointer-events: none;
}

.kd-inner-hero > .uagb-container-inner-blocks-wrap {
	position: relative;
	z-index: 2;
}

.kd-inner-h1 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: clamp(38px, 3.6vw, 60px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.015em;
	text-align: center;
	color: var(--kd-headings);
	text-wrap: balance;
}

/* ---------------------------------------------------------- content column */

.kd-inner-content .kd-h2 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.16;
	color: var(--kd-headings);
}

.kd-inner-content .kd-h3 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--kd-headings);
}

.kd-inner-content .kd-h4 .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--kd-headings);
}

.kd-inner-content .kd-body,
.kd-inner-content p {
	max-width: none;
	margin: 0;
	font-size: 19px;
	line-height: 32px;
	color: var(--kd-body);
}

.kd-inner-content a:not(.uagb-buttons-repeater) {
	color: var(--kd-alt-brand);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.kd-inner-content a:not(.uagb-buttons-repeater):hover {
	color: var(--kd-brand);
}

/* Lists: gold marker, matching the accent used across the site. */
.kd-inner-content .kd-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kd-inner-content .kd-list li {
	position: relative;
	padding-left: 30px;
	font-size: 19px;
	line-height: 30px;
	color: var(--kd-body);
}

.kd-inner-content ul.kd-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 12px;
	height: 12px;
	background-color: var(--kd-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.kd-inner-content ol.kd-list {
	counter-reset: kd-ol;
}

.kd-inner-content ol.kd-list li {
	counter-increment: kd-ol;
}

.kd-inner-content ol.kd-list li::before {
	content: counter(kd-ol) '.';
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 600;
	color: var(--kd-accent);
}

.kd-inner-img,
.kd-inner-img .wp-block-uagb-image__figure {
	width: 100% !important;
	margin: 0;
}

.kd-inner-img img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ------------------------------------------------------------ sidebar form */

.kd-sidebar {
	align-self: stretch;
}

/* Not sticky: the form is tall enough that pinning it fights the page. */
.kd-sidebar-card {
	position: static;
}

.kd-sidebar-heading .uagb-heading-text {
	margin: 0;
	font-family: var(--kd-font-heading);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.kd-sidebar-blurb {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: rgba(255, 255, 255, 0.75);
}

/* Same field set as the homepage, stacked to one column and inverted for the
   navy card. */
.kd-sidebar-card .gform_wrapper .gform_fields {
	grid-template-columns: 1fr !important;
	grid-row-gap: 18px;
}

.kd-sidebar-card .gform_wrapper .gfield {
	grid-column: 1 / -1 !important;
}

.kd-sidebar-card .gform_wrapper .gfield_label {
	margin-bottom: 6px;
	font-family: var(--kd-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kd-accent);
}

.kd-sidebar-card .gform_wrapper .gfield_required {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.kd-sidebar-card .gform_wrapper input[type='text'],
.kd-sidebar-card .gform_wrapper input[type='tel'],
.kd-sidebar-card .gform_wrapper input[type='email'],
.kd-sidebar-card .gform_wrapper textarea {
	width: 100% !important;
	padding: 9px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-family: var(--kd-font-body);
	font-size: 17px;
	color: #fff;
}

.kd-sidebar-card .gform_wrapper input:focus,
.kd-sidebar-card .gform_wrapper textarea:focus {
	border-bottom-color: var(--kd-accent) !important;
	outline: none;
}

.kd-sidebar-card .gform_wrapper input::placeholder,
.kd-sidebar-card .gform_wrapper textarea::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

.kd-sidebar-card .gform_wrapper textarea {
	min-height: 96px;
}

.kd-sidebar-card .gform_wrapper .gform_footer {
	margin: 6px 0 0;
	padding: 0;
}

.kd-sidebar-card .gform_wrapper .gform_button {
	width: 100%;
	padding: 14px 24px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--kd-gold) !important;
	font-family: var(--kd-font-body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kd-headings) !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.kd-sidebar-card .gform_wrapper .gform_button:hover {
	background: #fff !important;
	color: var(--kd-brand) !important;
}

.kd-sidebar-card .gform_wrapper .gform_validation_errors,
.kd-sidebar-card .gform_wrapper .gfield_validation_message {
	background: rgba(255, 255, 255, 0.08);
	border: 0;
	color: #ffd9d9;
	font-size: 14px;
}

.kd-sidebar-card .gform_confirmation_message {
	color: #fff;
	font-size: 17px;
	line-height: 28px;
}

@media (max-width: 921px) {
	.kd-inner-content .kd-h2 .uagb-heading-text {
		font-size: 32px;
	}

	.kd-inner-content .kd-h3 .uagb-heading-text {
		font-size: 26px;
	}

	/* Stacked below the content — no point pinning it. */
	.kd-sidebar-card {
		position: static;
		top: auto;
	}
}

@media (max-width: 600px) {
	.kd-inner-content .kd-body,
	.kd-inner-content p,
	.kd-inner-content .kd-list li {
		font-size: 17px;
		line-height: 28px;
	}
}

/* ==========================================================================
   16. Blog archive — the homepage card, repeated as a grid
   ==========================================================================
   uagb/post-grid is server-rendered, so Spectra writes its own CSS for the
   card (a #f6f6f6 panel with 20px padding) at .uagb-block-xxxx .uagb-post__*.
   Everything below is one class deeper so it wins on specificity alone,
   whichever stylesheet the theme happens to enqueue first. Values are lifted
   from section 9 so the archive and the homepage stay in step. */

.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap {
	padding: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.kd-blog-archive .uagb-post-grid .uagb-post__image {
	padding-bottom: 0;
	margin: 0;
}

/* Spectra ships .uagb-post__image a[class^=uagb-image-ratio-] > img { height:100% }
   at four classes deep, so the crop only sticks with !important — same trap as
   the homepage lead image in section 9. */
.kd-blog-archive .uagb-post-grid .uagb-post__image img {
	display: block;
	width: 100% !important;
	height: 260px !important;
	object-fit: cover;
}

/* Spectra's byline carries a dashicons calendar; the design has none. */
.kd-blog-archive .uagb-post-grid .uagb-post-grid-byline {
	padding-bottom: 0;
	margin: 24px 0 12px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	color: #e8b96a;
}

.kd-blog-archive .uagb-post-grid .uagb-post__date .dashicons {
	display: none;
}

.kd-blog-archive .uagb-post-grid .uagb-post__title {
	padding-bottom: 0;
	margin: 0 0 14px;
	font-family: var(--kd-font-heading);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.2;
	color: #fff;
}

.kd-blog-archive .uagb-post-grid .uagb-post__title a {
	color: inherit;
	font-size: inherit;
}

.kd-blog-archive .uagb-post-grid .uagb-post__title a:hover {
	color: var(--kd-accent);
}

.kd-blog-archive .uagb-post-grid .uagb-post__excerpt {
	padding-bottom: 22px;
	margin: 0;
	font-size: 18px;
	line-height: 29px;
	color: rgba(220, 228, 238, 0.72);
}

/* Read More is a link in the design, not a button — strip the button chrome. */
.kd-blog-archive .uagb-post-grid .uagb-post__cta,
.kd-blog-archive .uagb-post-grid .uagb-post__cta .uagb-text-link {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #fff;
}

.kd-blog-archive .uagb-post-grid .uagb-post__cta .uagb-text-link:hover {
	color: var(--kd-accent);
}

.kd-blog-archive .uagb-post-grid .uagb-post__no-posts {
	font-size: 18px;
	line-height: 29px;
	color: rgba(220, 228, 238, 0.72);
}

/* Pagination — Spectra defaults to light grey pills, invisible on navy. */
.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap {
	margin: 32px 0 0;
	justify-content: center;
	gap: 8px;
}

.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap a.page-numbers,
.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap span.page-numbers {
	min-width: 44px;
	margin: 0;
	padding: 10px 14px;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: transparent;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #fff;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap a.page-numbers:hover {
	border-color: var(--kd-accent);
	background: rgba(247, 184, 84, 0.16);
}

.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap span.page-numbers.current {
	border-color: var(--kd-accent);
	background: var(--kd-accent);
	color: var(--kd-brand);
}

@media (max-width: 921px) {
	.kd-blog-archive .uagb-post-grid .uagb-post__image img {
		height: 220px !important;
	}

	.kd-blog-archive .uagb-post-grid .uagb-post__title {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	.kd-blog-archive .uagb-post-grid .uagb-post__excerpt {
		font-size: 17px;
		line-height: 28px;
	}
}

/* ==========================================================================
   17. HTML site map — [smb_html_sitemap]
   ==========================================================================
   The shortcode emits plain wp_list_pages markup, so the whole page inherits
   browser defaults without this. Top level breaks into columns because the
   list runs to ~20 parents; each branch stays whole via break-inside. */

.smb-sitemap {
	margin-top: 8px;
}

.smb-sitemap__heading {
	margin: 40px 0 20px;
	font-family: var(--kd-font-heading);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--kd-brand);
}

.smb-sitemap__heading:first-child {
	margin-top: 0;
}

.smb-sitemap__list {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 3;
	column-gap: 48px;
}

.smb-sitemap__list > li {
	margin: 0 0 28px;
	break-inside: avoid;
}

.smb-sitemap__list > li > a {
	display: block;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(20, 42, 74, 0.14);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--kd-brand);
	text-decoration: none;
}

.smb-sitemap__list ul.children {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.smb-sitemap__list ul.children li {
	margin: 0 0 6px;
}

.smb-sitemap__list ul.children a {
	font-size: 16px;
	line-height: 26px;
	color: var(--kd-alt-brand);
	text-decoration: none;
}

.smb-sitemap a:hover,
.smb-sitemap a:focus {
	color: var(--kd-accent);
	text-decoration: underline;
}

@media (max-width: 921px) {
	.smb-sitemap__list {
		columns: 2;
		column-gap: 32px;
	}

	.smb-sitemap__heading {
		font-size: 27px;
	}
}

@media (max-width: 600px) {
	.smb-sitemap__list {
		columns: 1;
	}
}

/* Roughly a third of the migrated posts never had a featured image, and
   Spectra omits the image div entirely for those — so those cards start at the
   date and the grid's top edge goes ragged. A card whose first child is the
   byline gets a brand panel in the image's place, same height as the crop. */
.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap > .uagb-post-grid-byline:first-child {
	/* the byline's own top margin belongs under the panel, not above it */
	margin-top: 0;
}

.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap > .uagb-post-grid-byline:first-child::before {
	content: "";
	display: block;
	height: 260px;
	margin: 0 0 4px;   /* image cards clear the crop by 4px, so match that */
	background:
		radial-gradient(circle at 30% 30%, rgba(247, 184, 84, 0.18), transparent 60%),
		linear-gradient(150deg, #1b3a63 0%, #12233d 100%);
	border-bottom: 3px solid var(--kd-accent);
}

@media (max-width: 921px) {
	.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap > .uagb-post-grid-byline:first-child::before {
		height: 220px;
	}
}

/* ==========================================================================
   19. Single blog post
   ==========================================================================
   single.php reuses the stamped inner page's class names, so typography,
   lists, links and the sidebar card all come from sections 14–15 for free.
   What's missing is the layout Spectra generated per-block on those pages —
   the hero background and the 64/32 split — so it's declared here once. */

/* Astra's .ast-container is a flex row (it expects #primary + a sidebar). With
   those gone, two bare <section>s become two flex columns sitting side by side,
   each shrink-wrapped to its content. Block layout is what this template wants. */
.kd-single-post .ast-container {
	display: block;
	max-width: none;
	padding: 0;
}

.kd-single-post .kd-sec {
	width: 100%;
}

.kd-post-hero {
	min-height: 340px;
	display: flex;
	align-items: center;
	padding: 72px 48px;
	background-image: url('/wp-content/uploads/2026/09/kd-inner-hero-columns.jpg');
	background-size: cover;
	background-position: 50% 70%;
}

.kd-post-hero > .uagb-container-inner-blocks-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

.kd-post-body {
	padding: 96px 48px;
}

.kd-post-body > .uagb-container-inner-blocks-wrap {
	max-width: 1280px;
	margin: 0 auto;
}

.kd-post-row {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

.kd-post-content {
	flex: 1 1 64%;
	min-width: 0;
}

.kd-post-aside {
	flex: 0 0 32%;
	max-width: 32%;
}

/* On the stamped pages the card's navy panel and the gold rule come from
   Spectra's per-block CSS. The post template has no block, so the same values
   (sampled from /ssdi/) are declared here. */
.kd-post-aside .kd-sidebar-card {
	display: flex;
	flex-direction: column;
	row-gap: 18px;
	padding: 36px 32px;
	background: #142b49;
}

.kd-post-aside .kd-rule {
	width: 40px;
	border-top: 2px solid var(--kd-accent);
}

@media (max-width: 600px) {
	.kd-post-aside .kd-sidebar-card {
		padding: 28px 24px;
	}
}

.kd-post-date {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kd-alt-brand);
}

.kd-post-thumb {
	margin: 0 0 32px;
}

.kd-post-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

/* The migrated bodies are classic-editor HTML — bare h2/h3/p/ul, no kd-*
   classes — so the inner-page rules are mirrored onto the raw tags here. */
.kd-post-content > h2 {
	margin: 40px 0 16px;
	font-family: var(--kd-font-heading);
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--kd-headings);
}

.kd-post-content > h3 {
	margin: 32px 0 14px;
	font-family: var(--kd-font-heading);
	font-size: 27px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--kd-headings);
}

.kd-post-content > h4 {
	margin: 28px 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--kd-headings);
}

.kd-post-content > p,
.kd-post-content li {
	font-size: 18px;
	line-height: 31px;
	color: var(--kd-body);
}

.kd-post-content > p {
	margin: 0 0 20px;
}

.kd-post-content ul,
.kd-post-content ol {
	margin: 0 0 24px;
	padding-left: 24px;
}

.kd-post-content li {
	margin-bottom: 10px;
}

.kd-post-content a {
	color: var(--kd-alt-brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kd-post-content a:hover {
	color: var(--kd-accent);
}

.kd-post-content img {
	max-width: 100%;
	height: auto;
}

/* Migrated copy carries bare URLs and other unbroken strings that would
   otherwise set a min-content width wider than a phone. */
.kd-post-content {
	overflow-wrap: break-word;
}

.kd-post-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.kd-post-content > h2:first-child,
.kd-post-content > h3:first-child {
	margin-top: 0;
}

/* ------------------------------------------------------------- prev / next */

.kd-post-nav {
	display: flex;
	gap: 24px;
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid rgba(20, 42, 74, 0.14);
}

.kd-post-nav-link {
	flex: 1 1 0;
	font-family: var(--kd-font-heading);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--kd-brand);
	text-decoration: none;
}

.kd-post-nav-next {
	text-align: right;
}

.kd-post-nav-link span {
	display: block;
	margin-bottom: 8px;
	font-family: var(--kd-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kd-alt-brand);
}

.kd-post-nav-link:hover {
	color: var(--kd-accent);
}

@media (max-width: 921px) {
	.kd-post-row {
		flex-direction: column;
	}

	/* The row keeps align-items:flex-start, so a column child is NOT stretched
	   — it shrink-to-fits, and migrated copy with a long unbroken string then
	   makes the article wider than the phone. */
	.kd-post-content {
		flex: 0 0 auto;
		width: 100%;
	}

	.kd-post-aside {
		flex: 1 1 auto;
		max-width: none;
		width: 100%;
	}

	.kd-post-hero,
	.kd-post-body {
		padding-left: 24px;
		padding-right: 24px;
	}

	.kd-post-body {
		padding-top: 64px;
		padding-bottom: 64px;
	}

	.kd-post-content > h2 {
		font-size: 28px;
	}
}

@media (max-width: 600px) {
	.kd-post-hero,
	.kd-post-body {
		padding-left: 20px;
		padding-right: 20px;
	}

	.kd-post-content > p,
	.kd-post-content li {
		font-size: 17px;
		line-height: 28px;
	}

	.kd-post-nav {
		flex-direction: column;
	}

	.kd-post-nav-next {
		text-align: left;
	}
}

/* ==========================================================================
   20. Mobile — header, footer and one-slide-per-view carousels
   ========================================================================== */

/* ------------------------------------------------ header call button (≤921) */

/* "Call (800) 975-1866" is 241px wide with white-space:nowrap, and Astra's
   header row is a two-column grid that can't shrink — together with the
   hamburger it pushed the page 116px past the viewport. Below the desktop
   header the button keeps its tap target but drops to the icon alone; the
   number is still one tap away, and repeated in the hero and the footer. */
@media (max-width: 921px) {
	.ast-primary-header-bar .ast-custom-button {
		width: 44px;
		height: 44px;
		padding: 0 !important;
		justify-content: center;
		font-size: 0;
		letter-spacing: 0;
		/* The label is still a flex item at font-size 0, so the 8px gap that
		   separates icon from text on desktop shifts the lone icon off centre. */
		gap: 0;
	}

	.ast-primary-header-bar .ast-custom-button::before {
		width: 20px;
		height: 20px;
	}

	.ast-primary-header-bar .ast-builder-button-wrap {
		padding-left: 0;
		border-left: 0;
	}

	/* The grid row must be allowed to fit what's left. */
	.ast-primary-header-bar .site-header-primary-section-right {
		flex-wrap: nowrap;
		min-width: 0;
		gap: 8px;
	}

	.ast-primary-header-bar .ast-container {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ------------------------------------------------------------ footer gutter */

@media (max-width: 921px) {
	.site-footer .ast-builder-grid-row-container-inner,
	.site-footer .ast-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-footer .ast-builder-grid-row {
		gap: 32px;
	}

	.kd-offices {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ------------------------------------------ Gravity Forms two-up on a phone */

/* GF's half-width fields keep their grid span below 640px and overflow the
   wrapper; collapse every field to a single column. */
@media (max-width: 600px) {
	.gform_wrapper .gform_fields {
		grid-template-columns: 1fr !important;
	}

	.gform_wrapper .gfield {
		grid-column: 1 / -1 !important;
		max-width: 100% !important;
	}
}

/* --------------------------------------------- one slide per view carousels */

/* Practice areas, Why choose us, Meet the team and the blog row all become
   horizontal scroll-snap rails on a phone: one card fills the viewport, the
   next peeks in only far enough to signal the swipe. Scroll-snap rather than a
   slider library — the markup is already a flex row, so this needs no JS to
   work; kd.js only adds the dots. */
@media (max-width: 600px) {
	/* Three classes deep, because every property here is fighting a
	   .wp-block-uagb-container.uagb-block-xxxx rule Spectra generated. */
	.kd-sec.kd-pa .kd-rail,
	.kd-sec.kd-why .kd-why-grid,
	.kd-sec.kd-team .kd-team-grid,
	.kd-sec.kd-blog .kd-blog-body {
		display: flex !important;
		/* Spectra centres these rows. Centred + nowrap + overflow puts the
		   first slides at a negative offset, where no amount of scrolling can
		   reach them — the rail must start at its left edge. */
		justify-content: flex-start !important;
		align-items: stretch !important;
		gap: 16px !important;
		/* These containers carry directionTablet/directionMobile "column" in
		   their block attributes, so Spectra stacks them below the desktop
		   breakpoint — which is exactly what a horizontal rail must not do. */
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		/* Each rail is itself a flex item, and a flex item's default
		   min-width:auto refuses to shrink below its content — so without
		   this the rail grows to the width of all its slides and pushes the
		   page sideways instead of scrolling inside itself. */
		min-width: 0;
		max-width: 100%;
		/* Spectra writes `overflow: visible` for every container at
		   .wp-block-uagb-container.uagb-block-xxxx — two classes, and the
		   shorthand resets both axes — so the scroll container only survives
		   with !important. */
		overflow-x: auto !important;
		overflow-y: hidden !important;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.kd-rail::-webkit-scrollbar,
	.kd-why-grid::-webkit-scrollbar,
	.kd-team-grid::-webkit-scrollbar,
	.kd-blog-body::-webkit-scrollbar {
		display: none;
	}

	/* Spectra writes each slide's own `max-width: NN% !important` at
	   .wp-block-uagb-container.uagb-block-xxxx — two classes and important, so
	   it outranks a one-class rule even with !important. These selectors are
	   three deep to take the slide back to full width. */
	.kd-pa .kd-rail > .kd-pa-card,
	.kd-why .kd-why-grid > .kd-why-item,
	.kd-team .kd-team-grid > .kd-team-card,
	.kd-blog .kd-blog-body > .kd-blog-lead,
	.kd-blog .kd-blog-body > .kd-blog-list > .kd-blog-item {
		flex: 0 0 100% !important;
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		scroll-snap-align: center;
		scroll-snap-stop: always;
	}

	/* The lead card and the three list items live in two different columns;
	   display:contents lifts the list's children into the same flex row so all
	   four blog cards are siblings and each gets its own slide. */
	.kd-blog-body > .kd-blog-list {
		display: contents;
	}

	/* Those borders separated stacked list items; as slides they'd read as
	   card edges. */
	.kd-blog-list,
	.kd-blog-item {
		border: 0;
	}

	.kd-blog-item .kd-blog-date {
		margin-top: 0;
	}

	/* Equal height so the dots don't jump as you swipe. */
	.kd-team .kd-team-grid > .kd-team-card {
		align-self: stretch;
	}

	/* The same shrink has to be allowed all the way up each rail's chain. */
	.kd-rail-wrap,
	.kd-team-grid-col,
	.kd-why-grid,
	.kd-pa,
	.kd-team,
	.kd-blog {
		min-width: 0;
		max-width: 100%;
	}

	.kd-rail-wrap > *,
	.kd-team-grid-col > * {
		min-width: 0;
	}

	/* The existing desktop arrows would duplicate the dots. */
	.kd-rail-nav {
		display: none;
	}
}

/* ------------------------------------------------------------------- dots */

.kd-carousel-nav {
	display: none;
}

@media (max-width: 600px) {
	.kd-carousel-nav {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 16px;
		margin-top: 24px;
	}

	.kd-dots {
		display: flex;
		justify-content: center;
		gap: 10px;
	}

	.kd-dots button {
		width: 8px;
		height: 8px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(20, 42, 74, 0.22);
		cursor: pointer;
		transition: background 0.2s ease, transform 0.2s ease;
	}

	.kd-navy .kd-dots button {
		background: rgba(255, 255, 255, 0.3);
	}

	.kd-dots button[aria-current='true'] {
		background: var(--kd-accent);
		transform: scale(1.4);
	}

	/* A 8px dot is not a tap target; grow the hit area without the ink. */
	.kd-dots button::after {
		content: '';
		position: absolute;
		inset: -12px;
	}

	.kd-dots button {
		position: relative;
	}
}

/* ==========================================================================
   21. Mobile carousel arrows + per-section layout
   ========================================================================== */

@media (max-width: 600px) {
	.kd-car-arrow {
		flex: none;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 1px solid rgba(20, 42, 74, 0.25);
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
		transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
	}

	.kd-navy .kd-car-arrow {
		border-color: rgba(255, 255, 255, 0.35);
	}

	/* Chevron drawn from two borders so there's no icon font or SVG to load. */
	.kd-car-arrow span {
		display: block;
		width: 9px;
		height: 9px;
		margin: 0 auto;
		border-top: 2px solid var(--kd-brand);
		border-right: 2px solid var(--kd-brand);
	}

	.kd-navy .kd-car-arrow span {
		border-color: #fff;
	}

	.kd-car-prev span {
		transform: translateX(2px) rotate(-135deg);
	}

	.kd-car-next span {
		transform: translateX(-2px) rotate(45deg);
	}

	.kd-car-arrow:hover:not(:disabled) {
		border-color: var(--kd-accent);
		background: rgba(247, 184, 84, 0.16);
	}

	.kd-car-arrow:disabled {
		opacity: 0.3;
		cursor: default;
	}

	/* --------------------------------------------------- Meet the team */

	/* display:contents drops .kd-team-head's own box so its children become
	   items of the section column alongside the slider — which is what lets
	   the About Us button be ordered below the carousel. */
	.kd-team .kd-team-row,
	.kd-team .kd-team-head {
		display: contents;
	}

	.kd-team .kd-sec-head,
	.kd-team .kd-eyebrow,
	.kd-team .kd-h2 {
		text-align: center;
	}

	.kd-team .kd-eyebrow .uagb-heading-text,
	.kd-team .kd-h2 .uagb-heading-text {
		text-align: center;
	}

	.kd-team .kd-eyebrow {
		display: flex;
		justify-content: center;
	}

	/* Was a 96px band built for the desktop split layout. */
	.kd-team .kd-team-head,
	.kd-team-grid-col {
		padding: 0 !important;
	}

	.kd-team .kd-h2 {
		margin-bottom: 4px;
	}

	.kd-team-grid-col {
		margin-top: 8px;
	}

	/* Push the CTA past the slider and centre it. */
	.kd-team .kd-btn-wrap {
		order: 2;
		margin-top: 24px;
		display: flex;
		justify-content: center;
	}

	.kd-team-grid-col {
		order: 1;
	}

	/* ------------------------------------------------------ Latest blogs */

	.kd-blog .kd-blog-head,
	.kd-blog .kd-blog-head-text,
	.kd-blog .kd-blog-head-cta {
		display: contents;
	}

	.kd-blog .kd-eyebrow,
	.kd-blog .kd-h2 {
		text-align: center;
	}

	.kd-blog .kd-eyebrow {
		display: flex;
		justify-content: center;
	}

	.kd-blog .kd-eyebrow .uagb-heading-text,
	.kd-blog .kd-h2 .uagb-heading-text {
		text-align: center;
	}

	.kd-blog .kd-btn-wrap {
		order: 2;
		margin-top: 24px;
		display: flex;
		justify-content: center;
	}

	.kd-blog .kd-blog-body,
	.kd-blog .kd-carousel-nav {
		order: 1;
	}

	/* ------------------------------------------- Medical evidence section */

	/* Image last, so it closes the section and separates it from the copy that
	   follows instead of splitting the heading from its own text.
	   Scoped to the Medical Evidence section by its kd-medical-evidence class: .kd-content--left
	   also matches "Request a Free Disability Claim Evaluation", which was not
	   part of the request and keeps its image above the copy. */
	.kd-medical-evidence .kd-row {
		display: flex;
		flex-direction: column;
	}

	.kd-medical-evidence .kd-content-media {
		order: 2;
		margin-top: 32px;
	}

	.kd-medical-evidence .kd-content-text {
		order: 1;
	}
}

/* ----------------------------------- Contact section state phone list ----- */

/* Each line carried a 25.6px bottom margin on top of the column's 22px gap —
   roughly 48px between one phone number and the next. */
.kd-contact-statephone {
	margin: 0 !important;
}

/* The column itself has a 22px row-gap that suits the headings and body copy
   but reads as a huge gulf between six one-line phone numbers, and a gap can't
   be overridden per child — so the list pulls itself back together. */
.kd-contact-statephone + .kd-contact-statephone {
	margin-top: -14px !important;
}

/* ==========================================================================
   22. Design QA — 2026-09-18
   ========================================================================== */

/* --- 2 + 3. Practice areas: exactly three cards, boxed background --------- */

/* Cards were a fixed 340px in a 1280px rail, so a fourth sat half-clipped at
   the edge. Thirds of the rail (minus two gaps) shows three, cleanly. */
.kd-pa .kd-rail > .kd-pa-card {
	flex: 0 0 calc((100% - 56px) / 3) !important;
	width: calc((100% - 56px) / 3) !important;
	max-width: none !important;
}

/* The panel colour belongs to the content box, not the full-bleed section —
   as in the approved mockup. */
.kd-sec.kd-pa {
	background-color: transparent !important;
}

.kd-sec.kd-pa > .uagb-container-inner-blocks-wrap {
	padding: 72px 56px;
	background: var(--kd-panel);
}

@media (max-width: 921px) {
	.kd-sec.kd-pa > .uagb-container-inner-blocks-wrap {
		padding: 48px 24px;
	}
}

@media (max-width: 600px) {
	/* On a phone the box padding comes straight off the carousel's width, and
	   the section already has its own gutter — keep it minimal. */
	.kd-sec.kd-pa > .uagb-container-inner-blocks-wrap {
		padding: 40px 16px;
	}
}

/* --- 4 + 5. Clickable practice-area and team cards ----------------------- */

.kd-pa-card,
.kd-team-card {
	position: relative;
}

/* Rides on Spectra's own overlay class; these just pin it down regardless of
   which container rule tries to make it a flex item again. */
.kd-card-link {
	position: absolute !important;
	inset: 0 !important;
	z-index: 6;
	border-radius: inherit;
}

.kd-card-link:focus-visible {
	outline: 3px solid var(--kd-accent);
	outline-offset: 3px;
}

.kd-pa-card:hover .kd-pa-title .uagb-heading-text,
.kd-team-card:hover .kd-team-name .uagb-heading-text {
	color: var(--kd-accent);
}

.kd-pa-card,
.kd-team-card {
	transition: transform 0.2s ease;
}

.kd-pa-card:hover,
.kd-team-card:hover {
	transform: translateY(-4px);
}

/* --- 6. Why choose us: even space above and below each point ------------- */

/* Items stretch to the tallest in their row, and with the content pinned to
   the top all the slack collected under it. Centring splits it evenly. */
.kd-why-item {
	align-items: center !important;
}

/* --- 7. Team band image: drop the shadow -------------------------------- */

.kd-band img,
.kd-band .wp-block-uagb-image,
.kd-band figure {
	filter: none !important;
	box-shadow: none !important;
}

/* --- 8. Blog section heading + CTA legible on navy ----------------------- */

.kd-blog .kd-eyebrow .uagb-heading-text {
	color: #fff;
}

.kd-blog .kd-btn-gold .uagb-buttons-repeater,
.kd-blog .kd-btn-gold .uagb-button__link {
	color: var(--kd-headings) !important;
}

.kd-blog .kd-btn-wrap .uagb-buttons-repeater:not(.ast-outline-button) {
	background: var(--kd-gold) !important;
}

/* --- 11. Contact heading: less air under the form ------------------------ */

.kd-contact .kd-h2--lg .uagb-heading-text {
	font-size: clamp(30px, 2.8vw, 42px);
}

/* --- 12. Footer divider above the copyright row ------------------------- */

/* One rule above the copyright row, not three. Astra draws it on the
   full-bleed wrapper, so it's moved onto the 1280 grid inside — that is the
   only element already at content width — and softened from opaque #e1e1e1 to
   the same 22% white the office tabs use. The duplicate on the row above is
   switched off. */
.site-footer .site-above-footer-wrap {
	border-bottom: 0;
}

.site-footer .site-primary-footer-wrap {
	border-top: 0;
}

.site-footer .site-primary-footer-wrap .ast-builder-footer-grid-columns {
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* --- 13. Why choose us: client-supplied icons --------------------------- */

/* The SVGs are complete badges (navy disc included), so the container's own
   disc and the Font Awesome glyph both step aside. They live in the theme
   rather than the media library because WordPress rejects SVG uploads by
   default, and for good reason — an SVG can carry script. */
.kd-why-item > .kd-why-icon {
	background-color: transparent !important;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.kd-why-icon .uagb-svg-wrapper,
.kd-why-icon svg {
	display: none !important;
}

.kd-why--contingency > .kd-why-icon { background-image: url('assets/icons/contingecy-fee.svg'); }
.kd-why--communication > .kd-why-icon { background-image: url('assets/icons/dedicated-client-comm.svg'); }
.kd-why--medical > .kd-why-icon { background-image: url('assets/icons/comprehensive-medical-gathering.svg'); }
.kd-why--language > .kd-why-icon { background-image: url('assets/icons/services-in-english.svg'); }
.kd-why--hearing-prep > .kd-why-icon { background-image: url('assets/icons/thorough-hearing-prep.svg'); }
.kd-why--multi-state > .kd-why-icon { background-image: url('assets/icons/multi-state.svg'); }

/* --- 21. Contact page: rule between each state -------------------------- */

/* `~` matches every .kd-h3 that follows another one — i.e. all but the first.
   :first-of-type is no help here: these headings are <div> wrappers among many
   other divs, so it matches the wrong element. */
.page-id-886 .kd-inner-content .kd-h3 ~ .kd-h3 {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #e2e6ec;
}

/* --- 17–20. Blog archive: white ground, tighter alignment --------------- */

/* The archive was built to mirror the navy homepage section. It now stands on
   white with the brand navy for headings, so the rules below override
   section 16 rather than replace it — the homepage section still uses those. */

/* The `kd-navy` class is off this section now, so the navy gradient and its
   texture overlay are gone at source rather than being painted over — a
   background-color alone never would have covered the gradient, which is a
   background-image and sits above it. */
.kd-sec.kd-blog-archive {
	background-color: #fff;
}

/* 18. The page's H1 already says what this is. */
.kd-blog-archive .kd-eyebrow {
	display: none;
}

/* 17. More air between cards. */
.kd-blog-archive .uagb-post-grid.is-grid.uagb-post__items {
	row-gap: 72px !important;
	column-gap: 48px !important;
}

/* 19. Text lines up with the image edge — Spectra's card padding removed. */
.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap,
.kd-blog-archive .uagb-post-grid .uagb-post__text,
.kd-blog-archive .uagb-post-grid .uagb-post__title,
.kd-blog-archive .uagb-post-grid .uagb-post__excerpt,
.kd-blog-archive .uagb-post-grid .uagb-post-grid-byline {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: left;
}

/* Spectra pulls the image out by -20px on each side to bleed it past the
   card's own padding; with that padding gone the negative margin just pushes
   the image left of the text. */
.kd-blog-archive .uagb-post-grid.is-grid .uagb-post__inner-wrap .uagb-post__image:first-child {
	margin: 0 !important;
}

/* 20. Colours: navy headings, grey body, gold meta. */
.kd-blog-archive .uagb-post-grid .uagb-post__title,
.kd-blog-archive .uagb-post-grid .uagb-post__title a {
	color: #142a4a;
}

.kd-blog-archive .uagb-post-grid .uagb-post__title a:hover {
	color: var(--kd-accent);
}

.kd-blog-archive .uagb-post-grid .uagb-post__excerpt {
	color: #535353;
}

.kd-blog-archive .uagb-post-grid .uagb-post-grid-byline,
.kd-blog-archive .uagb-post-grid .uagb-post__cta,
.kd-blog-archive .uagb-post-grid .uagb-post__cta .uagb-text-link {
	color: var(--kd-accent);
}

.kd-blog-archive .uagb-post-grid .uagb-post__cta .uagb-text-link:hover {
	color: #142a4a;
}

.kd-blog-archive .uagb-post-grid .uagb-post__no-posts {
	color: #535353;
}

/* The imageless-card panel and the pagination were drawn for the navy ground. */
.kd-blog-archive .uagb-post-grid .uagb-post__inner-wrap > .uagb-post-grid-byline:first-child::before {
	background:
		radial-gradient(circle at 30% 30%, rgba(247, 184, 84, 0.22), transparent 60%),
		linear-gradient(150deg, #1b3a63 0%, #12233d 100%);
}

.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap a.page-numbers,
.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap span.page-numbers {
	border-color: rgba(20, 42, 74, 0.25);
	color: #142a4a;
}

.kd-blog-archive .uagb-post-grid .uagb-post-pagination-wrap span.page-numbers.current {
	border-color: var(--kd-accent);
	background: var(--kd-accent);
	color: #142a4a;
}

/* --- Nav dropdowns: smaller type, shorter panels ------------------------ */

/* Rows were 62px each (19px type on 17px of vertical padding), so Practice
   Areas alone ran 551px — more than half the viewport. Smaller type and
   tighter padding bring a row to ~44px without crowding the tap target. */
.ast-desktop .main-header-menu .sub-menu .menu-link,
.ast-desktop .main-header-menu .astra-megamenu .menu-link {
	padding-top: 11px !important;
	padding-bottom: 11px !important;
	font-size: 15px !important;
	line-height: 1.45 !important;
}

/* Deeper levels read as subordinate to the level above. */
.ast-desktop .main-header-menu .sub-menu .sub-menu .menu-link {
	font-size: 14px !important;
}

.ast-desktop .main-header-menu .sub-menu {
	min-width: 250px;
}

/* --- Blog section: the post links must stay white on navy --------------- */

/* Wiring real posts turned the titles and "Read More" into anchors, and those
   picked up the theme's default navy link colour — invisible on the navy
   band. The static placeholders had no links, which is why this only appeared
   once the section went live. */
.kd-blog .kd-blog-lead-title a,
.kd-blog .kd-blog-item-title a,
.kd-blog .kd-readmore a {
	color: #fff;
	text-decoration: none;
}

.kd-blog .kd-blog-lead-title a:hover,
.kd-blog .kd-blog-item-title a:hover,
.kd-blog .kd-readmore a:hover {
	color: var(--kd-accent);
}

.kd-blog .kd-blog-lead-img a {
	display: block;
}

/* --- Why choose us: the last paragraph's margin was the extra space ----- */

/* The item's box padding was already even at 34px top and bottom; what made
   the bottom look deeper was the body paragraph's own 28.8px bottom margin
   sitting inside the item, below the last line of ink. */
.kd-why-text > *:last-child {
	margin-bottom: 0 !important;
}

/* With the margin gone the boxes are even, but the ink still isn't: a heading's
   cap-height starts below its line-box top while the body's last line carries
   descender space below the baseline — about 7px of it. Trimming the bottom
   padding by that much makes the space read as equal, which is what the eye
   actually judges. */
.kd-why-item {
	padding-bottom: 27px !important;
}

/* ==========================================================================
   23. Locations mega menu
   ========================================================================== */

/* The panel spans the header rather than the menu item, so the item goes
   static and the header bar becomes the positioning context. */
.ast-desktop .ast-primary-header-bar .site-primary-header-wrap,
.ast-desktop .ast-primary-header-bar .ast-container {
	position: relative;
}

.ast-desktop .main-header-menu > li.kd-has-mega {
	position: static;
}

/* Astra makes the menu <ul> itself relative, so it — not the header — was
   capturing the panel and clipping it to the width of the nav. The individual
   items stay relative, so the ordinary dropdowns still hang off their own li. */
.ast-desktop .ast-primary-header-bar .main-header-menu {
	position: static;
}

.ast-desktop .ast-primary-header-bar .main-header-menu > li:not(.kd-has-mega) {
	position: relative;
}

.kd-mega {
	display: none;
}

.ast-desktop .kd-has-mega > .kd-mega {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 40;
	display: flex;
	width: 100%;
	padding: 28px 0 0;
	gap: 48px;
	border-bottom: 3px solid var(--kd-accent);
	background: #fff;
	box-shadow: 0 18px 40px rgba(15, 26, 43, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.ast-desktop .kd-has-mega:hover > .kd-mega,
.ast-desktop .kd-has-mega:focus-within > .kd-mega {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.kd-mega-label {
	margin: 0 0 14px;
	font-family: var(--kd-font-body);
	font-size: 13px;
	font-weight: 600;
	/* Without this the label inherits the header menu's tall line-height and
	   the 13px text sits in an 80px box, opening a gap under every heading. */
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kd-alt-brand);
}

.kd-mega-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kd-mega-list li {
	margin: 0;
}

.kd-mega-list a,
.kd-mega-list span {
	display: block;
	padding: 7px 0;
	font-size: 16px;
	line-height: 1.35;
	color: var(--kd-brand);
	text-decoration: none;
}

.kd-mega-list a:hover {
	color: var(--kd-accent);
}

/* --- column 1: the states ------------------------------------------------ */

.kd-mega-states {
	flex: 0 0 280px;
	padding-bottom: 40px;
	border-right: 1px solid rgba(20, 42, 74, 0.12);
}

.kd-mega-states .kd-mega-label,
.kd-mega-panels .kd-mega-label {
	padding-left: 18px;
}

.kd-mega-state {
	padding: 13px 18px !important;
	border-left: 3px solid transparent;
	font-size: 18px !important;
	font-weight: 500;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.kd-mega-state.is-active {
	border-left-color: var(--kd-accent);
	background: var(--kd-panel);
	color: var(--kd-headings);
	font-weight: 600;
}

/* --- columns 2 and 3: the selected state's panel -------------------------- */

.kd-mega-panels {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	padding-bottom: 40px;
}

.kd-mega-panel {
	display: none;
	gap: 64px;
}

.kd-mega-panel.is-active {
	display: flex;
}

.kd-mega-practice {
	flex: 0 0 46%;
}

.kd-mega-service {
	flex: 1 1 auto;
}

/* Below the desktop header the off-canvas menu takes over, and it renders the
   normal nested list — the mega markup would only get in its way. */
@media (max-width: 921px) {
	.kd-mega {
		display: none !important;
	}
}

/* ==========================================================================
   24. Mobile design QA — 2026-09-18
   ========================================================================== */

@media (max-width: 921px) {

	/* --- 4. Hero: copy on white, photo beneath ------------------------- */

	/* The desktop hero sets type over the photograph. On a phone that leaves
	   the headline fighting the image, so the section drops the background,
	   goes white, and the photo is re-introduced underneath as a full-bleed
	   band — the arrangement in the approved mockup. */
	.kd-sec.kd-hero {
		flex-direction: column !important;
		min-height: 0 !important;
		padding: 28px 20px 0 !important;
		background-image: none !important;
		background-color: #fff !important;
	}

	.kd-sec.kd-hero::after {
		content: '';
		display: block;
		/* Spectra already generates an ::after on this container for its
		   background overlay, absolutely positioned and inset 0 — these rules
		   merge into that one, so it has to be put back into normal flow or the
		   band floats over the copy instead of sitting under it. */
		position: relative !important;
		inset: auto !important;
		z-index: auto !important;
		opacity: 1 !important;
		/* align-self:stretch fills the content box, then the negative inline
		   margins take it out to the section edges. calc(100% + 40px) does not
		   work here: on a border-box flex item the percentage resolves against
		   the full 375px, not the 335px content width, so it overshot by 20. */
		align-self: stretch;
		width: auto;
		/* An explicit height, not aspect-ratio: with width:auto the browser
		   derives the width from the ratio instead of stretching, and the band
		   came out 211px wide. */
		height: 62vh;
		max-height: 460px;
		min-height: 320px;
		margin: 28px -20px 0;
		background: url('/wp-content/uploads/2026/09/kd-hero.jpg') center 30% / cover no-repeat;
	}

	/* 1. Eyebrow on one line. */
	.kd-hero .kd-eyebrow .uagb-heading-text {
		font-size: 11px;
		letter-spacing: 0.1em;
		white-space: nowrap;
	}

	/* 2. Tagline on three. */
	.kd-hero-h1 .uagb-heading-text {
		font-size: 32px;
		line-height: 1.12;
	}

	/* --- 5, 9, 13. Separators the client asked to drop ----------------- */

	.kd-rule--hide-tablet {
		display: none !important;
	}

	/* --- 6. Team cards: scrim darker than the section ------------------ */

	/* The scrim was the same navy as the section behind it, so each photo
	   dissolved into the background at its lower edge. A darker mix keeps the
	   caption legible and gives the card a visible bottom. */
	.kd-team-body {
		background: linear-gradient(
			rgba(6, 16, 33, 0) 26%,
			rgba(6, 16, 33, 0.72) 58%,
			rgba(6, 16, 33, 0.97) 100%
		) !important;
	}

	/* 6. …and close the gap between the role and View Bio. */
	.kd-team-body > * {
		margin-bottom: 0 !important;
	}

	.kd-team-body {
		row-gap: 4px !important;
	}

	/* --- 7 + 12. Carousel nav sits closer to what follows -------------- */

	/* The slider, the dots and the button are siblings in the section's own
	   flex column, so its row-gap (48px on the blog, 24 on the team) set the
	   spacing — margins on the children alone only added to it. */
	.kd-sec.kd-blog > .uagb-container-inner-blocks-wrap,
	.kd-sec.kd-team > .uagb-container-inner-blocks-wrap,
	.kd-team-grid-col {
		row-gap: 18px !important;
	}

	.kd-carousel-nav {
		margin-top: 10px !important;
	}

	.kd-team .kd-btn-wrap,
	.kd-blog .kd-btn-wrap {
		margin-top: 6px !important;
	}

	/* --- 10. Why choose us: centred ------------------------------------ */

	.kd-why-item {
		flex-direction: column !important;
		text-align: center;
	}

	.kd-why-text,
	.kd-why-title .uagb-heading-text,
	.kd-why-body {
		text-align: center !important;
	}

	.kd-why-item > .kd-why-icon {
		margin: 0 auto 16px;
	}

	/* --- 11. Blog card headings --------------------------------------- */

	.kd-blog-lead-title .uagb-heading-text {
		font-size: 25px;
	}

	.kd-blog-item-title .uagb-heading-text {
		font-size: 22px;
	}

	/* --- 14. Medical evidence: image closer to the copy ---------------- */

	.kd-medical-evidence .kd-content-media {
		margin-top: 8px !important;
	}

	.kd-medical-evidence .kd-row {
		row-gap: 16px !important;
	}

	/* --- 15. Less air between that section and the FAQs ---------------- */

	.kd-medical-evidence {
		padding-bottom: 24px !important;
	}

	.kd-sec.kd-faq {
		padding-top: 24px !important;
	}

	/* --- 16. Contact separator left, not centred ----------------------- */

	.kd-contact .kd-rule {
		text-align: left !important;
	}

	/* --- 17. Menu arrows ----------------------------------------------- */

	/* Astra puts a decorative arrow inside every sub-menu link on top of the
	   expand toggle — two arrows on one row. The toggle is the one that does
	   something, so the decorative one goes. */
	.main-header-menu .sub-menu .menu-link > .ast-icon.icon-arrow,
	.main-header-menu .sub-menu .menu-link .ast-arrow-svg:not(.dropdown-menu-toggle .ast-arrow-svg) {
		display: none !important;
	}

	.main-header-menu .dropdown-menu-toggle .ast-arrow-svg,
	.main-header-menu .ast-menu-toggle svg {
		width: 11px !important;
		height: 11px !important;
	}
}

/* --- Navy sections: restore the stacking that display:contents removed --- */

/* `.kd-navy > * { position: relative; z-index: 2 }` is what keeps the dot
   texture (an absolutely positioned ::after at z-index 1) behind the content.
   On mobile the team and blog rows are `display: contents` so the About Us and
   Read More Blogs buttons can be reordered below their sliders — and an
   element with display:contents generates no box, so its position and z-index
   are dropped. Everything inside fell to z-index 0, i.e. underneath the
   texture, which laid a milky film over the photographs, the headings and the
   buttons. These are the elements that actually render once those rows
   collapse, so the z-index goes on them instead. */
@media (max-width: 921px) {
	.kd-navy .kd-team-head > *,
	.kd-navy .kd-team-grid-col,
	.kd-navy .kd-blog-head-text > *,
	.kd-navy .kd-blog-head-cta > *,
	.kd-navy .kd-blog-body,
	.kd-navy .kd-btn-wrap,
	.kd-navy .kd-carousel-nav {
		position: relative;
		z-index: 2;
	}
}

/* ==========================================================================
   25. Hero review strip + contact office panel — 2026-09-22
   ========================================================================== */

/* --- hero review strip -------------------------------------------------- */

/* The strip is pulled up over the hero photograph, so it needs a shadow to
   read as a card sitting in front of the image rather than a band butted
   against it. */
/* Three classes deep: Spectra writes its own box-shadow for this container at
   .wp-block-uagb-container.uagb-block-xxxx, which outranks a single class. */
.kd-sec.kd-hero-reviews .kd-review-panel {
	position: relative;
	z-index: 3;
	box-shadow: 0 18px 44px rgba(15, 26, 43, 0.18), 0 2px 8px rgba(15, 26, 43, 0.08);
}

.kd-hero-reviews {
	position: relative;
	z-index: 3;
	background: transparent !important;
}

/* The widget ships its own white card; the panel supplies the surface. */
.kd-review-panel .ti-widget {
	margin: 0 !important;
}

/* --- contact: office numbers panel -------------------------------------- */

.kd-contact-offices {
	width: 100% !important;
	max-width: none !important;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 18px;
	justify-items: center;
}

/* The intro line sits across all three columns. */
.kd-contact-offices > .kd-contact-body {
	grid-column: 1 / -1;
	margin: 0 0 6px !important;
	font-size: 19px;
	font-weight: 600;
	text-align: center;
	color: var(--kd-headings);
}

/* Section 22 pulls these lines together when they are a stacked list in the
   column; inside the panel they are grid cells and must not overlap. */
.kd-contact-offices .kd-contact-statephone,
.kd-contact-offices .kd-contact-statephone + .kd-contact-statephone {
	margin: 0 !important;
	font-size: 17px;
	line-height: 1.5;
	white-space: nowrap;
}

.kd-contact-offices .kd-contact-statephone strong {
	color: var(--kd-headings);
	font-weight: 600;
}

.kd-contact-offices .kd-contact-statephone a {
	color: var(--kd-body);
	text-decoration: none;
}

.kd-contact-offices .kd-contact-statephone a:hover {
	color: var(--kd-accent);
}

@media (max-width: 921px) {
	.kd-contact-offices {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}
}

@media (max-width: 600px) {
	.kd-contact-offices {
		grid-template-columns: 1fr;
		row-gap: 12px;
		justify-items: start;
	}

	.kd-contact-offices > .kd-contact-body {
		text-align: left;
	}
}

/* ==========================================================================
   26. Footer state tabs as links — 2026-10-12
   ==========================================================================
   The tabs were <button>s; they are now <a>s pointing at each state page, so
   they need the button's own look restored (an anchor brings underline and the
   theme's link colour with it) and a cursor/hover that reads as navigation. */

.kd-office-tabs .kd-office-tab {
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.kd-office-tabs a.kd-office-tab:hover,
.kd-office-tabs a.kd-office-tab:focus-visible {
	color: #fff;
}

.kd-office-tabs a.kd-office-tab:focus-visible {
	outline: 2px solid var(--kd-accent);
	outline-offset: 3px;
}

/* ==========================================================================
   27. Locations: US map + office grid — 2026-10-12
   ========================================================================== */

.kd-map {
	margin: 0 auto;
	max-width: 980px;
	text-align: center;
}

.kd-map__heading {
	margin: 0 0 10px;
	color: var(--kd-headings);
}

.kd-map__intro {
	margin: 0 auto 28px;
	max-width: 640px;
	color: var(--kd-body);
}

.kd-map__svg {
	margin: 0 auto;
}

/* The plugin hardcodes Arial for the state abbreviations. */
#usvisns {
	font-family: var(--kd-font-body) !important;
	font-weight: 600;
	pointer-events: none;
}

/*
 * The served states were navy once, which needed white labels forced over the
 * plugin's inline fill. They are a light blue now, so every abbreviation reads
 * in the default navy and no override is needed -- if the fill is ever darkened
 * again, the white-label rule has to come back with it.
 */

#usmapbase svg {
	overflow: visible;
}

/* Tooltip — the plugin's default is a grey Trebuchet box. */
#tipusmap {
	z-index: 20;
	padding: 10px 14px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: var(--kd-brand) !important;
	box-shadow: 0 8px 24px rgba( 20, 42, 74, 0.28 ) !important;
	color: #fff !important;
	font-family: var(--kd-font-body) !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
	text-align: left;
}

#tipusmap strong {
	display: block;
	font-family: var(--kd-font-heading);
	font-size: 15px;
}

#tipusmap span {
	color: var(--kd-accent);
	font-size: 13px;
}

/*
 * Real links beside the SVG: the map's own states are JS-only.
 *
 * These carry an element qualifier because section 21's underline rule,
 * .kd-inner-content a:not(.uagb-buttons-repeater), counts its :not()
 * argument and so scores (0,2,1) -- a plain two-class rule loses to it.
 */
.kd-map__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.kd-inner-content a.kd-map__link {
	padding: 9px 20px;
	border: 1px solid var(--kd-rule);
	border-radius: 999px;
	background: #fff;
	color: var(--kd-brand);
	font-family: var(--kd-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.kd-inner-content a.kd-map__link:hover,
.kd-inner-content a.kd-map__link:focus-visible {
	border-color: var(--kd-brand);
	background: var(--kd-brand);
	color: #fff;
}

/* --- Office grid --- */

.kd-loc-offices__state + .kd-loc-offices__state {
	margin-top: 40px;
}

.kd-loc-offices__state-name {
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--kd-rule);
	font-size: 24px;
}

.kd-inner-content .kd-loc-offices__state-name a {
	color: var(--kd-headings);
	text-decoration: none;
}

.kd-inner-content .kd-loc-offices__state-name a:hover {
	text-decoration: underline;
}

.kd-loc-offices__grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
	gap: 20px;
}

/*
 * Scoped: the footer's own office panels (section 25) also use .kd-loc-office, and
 * an unscoped rule here repaints them pale blue on the navy footer.
 */
.kd-loc-offices .kd-loc-office {
	display: flex;
	flex-direction: column;
	padding: 22px 24px;
	border: 1px solid var(--kd-rule);
	border-radius: 10px;
	background: var(--kd-panel);
}

.kd-loc-office__city {
	margin: 0 0 8px;
	color: var(--kd-headings);
	font-family: var(--kd-font-heading);
	font-size: 19px;
	font-weight: 600;
}

.kd-loc-office__addr {
	margin: 0 0 10px;
	color: var(--kd-body);
	font-size: 15px;
	font-style: normal;
	line-height: 1.5;
}

.kd-loc-office__phone {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
}

.kd-inner-content .kd-loc-office__phone a {
	color: var(--kd-brand);
	text-decoration: none;
}

.kd-inner-content .kd-loc-office__phone a:hover {
	text-decoration: underline;
}

.kd-inner-content a.kd-loc-office__dir {
	margin-top: auto;
	align-self: flex-start;
	color: var(--kd-alt-brand);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.kd-inner-content a.kd-loc-office__dir:hover {
	text-decoration: underline;
}

.kd-loc-office--none p {
	margin: 0 0 10px;
	color: var(--kd-body);
	font-size: 15px;
}

@media ( max-width: 600px ) {
	.kd-map__links {
		gap: 8px;
	}

	.kd-inner-content a.kd-map__link {
		padding: 8px 16px;
		font-size: 14px;
	}
}

/* --- Per-state sidebar navigation (item 5) --- */

.kd-secnav {
	margin-bottom: 24px;
	padding: 24px 26px;
	border: 1px solid var(--kd-rule);
	border-radius: 10px;
	background: #fff;
}

.kd-secnav__title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--kd-rule);
	font-family: var(--kd-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}

/*
 * Astra's `.ast-single-post .entry-content a` underline is (0,2,1) and the
 * whole page sits inside .entry-content, so every link rule in this card is
 * written at matching specificity to win on source order.
 */
.kd-sidebar .kd-secnav a {
	text-decoration: none;
}

.kd-sidebar .kd-secnav__title a {
	color: var(--kd-headings);
}

.kd-secnav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kd-secnav__list--1,
.kd-secnav__list--2,
.kd-secnav__list--3 {
	margin: 6px 0 10px;
	padding-left: 14px;
	border-left: 2px solid var(--kd-rule);
}

.kd-secnav__item {
	margin: 0 0 8px;
	list-style: none;
}

.kd-secnav__link,
.kd-secnav__label {
	display: block;
	color: var(--kd-body);
	font-family: var(--kd-font-body);
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
}

.kd-sidebar .kd-secnav__link:hover,
.kd-sidebar .kd-secnav__link:focus-visible {
	color: var(--kd-brand);
	text-decoration: underline;
}

.kd-secnav__label {
	color: var(--kd-headings);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.kd-secnav__item.is-current > .kd-secnav__link {
	color: var(--kd-brand);
	font-weight: 600;
}

/* Marker on the current page, drawn in the gutter of the nested list. */
.kd-secnav__list--1 > .kd-secnav__item.is-current,
.kd-secnav__list--2 > .kd-secnav__item.is-current,
.kd-secnav__list--3 > .kd-secnav__item.is-current {
	margin-left: -16px;
	padding-left: 14px;
	border-left: 2px solid var(--kd-accent);
}

@media ( max-width: 921px ) {
	.kd-secnav {
		margin-bottom: 20px;
	}
}

/* --- Homepage map band (replaced the hero review strip, item 3) --- */

.kd-home-map {
	position: relative;
	z-index: 3;
	margin: -96px auto 0;
	padding: 0 48px;
	max-width: 1376px;   /* 1280 content + the 48px gutters */
}

.kd-home-map__card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
	padding: 40px 44px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 48px rgba( 20, 42, 74, 0.16 );
}

.kd-home-map__eyebrow {
	margin: 0 0 10px;
	color: var(--kd-alt-brand);
	font-family: var(--kd-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kd-home-map__title {
	margin: 0 0 14px;
	color: var(--kd-headings);
	font-family: var(--kd-font-heading);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.18;
}

.kd-home-map__text {
	margin: 0 0 20px;
	color: var(--kd-body);
	font-size: 16px;
	line-height: 1.6;
}

/* A plain block: the .kd-map__row children are each their own flex row, and
   a flex parent would lay those rows out side by side instead of stacking. */
.kd-home-map__links {
	display: block;
}

/*
 * The pills reuse .kd-map__link, but the homepage is not inside
 * .kd-inner-content, so they need their own rules at a specificity that
 * clears Astra's .ast-single-post .entry-content a underline (0,2,1).
 */
.kd-home-map__links a.kd-map__link {
	padding: 9px 18px;
	border: 1px solid var(--kd-rule);
	border-radius: 999px;
	background: #fff;
	color: var(--kd-brand);
	font-family: var(--kd-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.kd-home-map__links a.kd-map__link:hover,
.kd-home-map__links a.kd-map__link:focus-visible {
	border-color: var(--kd-brand);
	background: var(--kd-brand);
	color: #fff;
}

.kd-home-map__links a.kd-map__link--all {
	border-color: var(--kd-brand);
	background: var(--kd-brand);
	color: #fff;
}

.kd-home-map__links a.kd-map__link--all:hover,
.kd-home-map__links a.kd-map__link--all:focus-visible {
	background: var(--kd-alt-brand);
	border-color: var(--kd-alt-brand);
}

.kd-home-map__svg {
	min-width: 0;   /* let the SVG shrink inside the grid track */
}

@media ( max-width: 1024px ) {
	.kd-home-map {
		margin-top: -64px;
		padding: 0 24px;
	}

	.kd-home-map__card {
		gap: 28px;
		padding: 32px;
	}

	.kd-home-map__title {
		font-size: 26px;
	}
}

@media ( max-width: 782px ) {
	.kd-home-map {
		margin-top: -40px;
		padding: 0 20px;
	}

	.kd-home-map__card {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 28px 24px;
	}

	/* Map first on a phone: it says "nationwide" faster than the paragraph. */
	.kd-home-map__svg {
		order: -1;
	}

	.kd-home-map__title {
		font-size: 23px;
	}
}

/* --- Labelled state-pill rows (2026-10-12) --- */

.kd-map__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 12px;
	margin-top: 22px;
}

.kd-map__row-label {
	margin: 0;
	color: var(--kd-headings);
	font-family: var(--kd-font-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.kd-map__row .kd-map__links {
	margin-top: 0;
}

/* The homepage band is left-aligned, not centred like the Locations page. */
.kd-home-map__links .kd-map__row {
	justify-content: flex-start;
	margin-top: 14px;
}

.kd-home-map__links .kd-map__row:first-child {
	margin-top: 0;
}

@media ( max-width: 600px ) {
	.kd-map__row {
		gap: 8px 10px;
	}

	.kd-map__row-label {
		flex-basis: 100%;
		font-size: 13px;
	}
}

/*
 * The homepage band's copy column is roughly half the card, so the pill rows
 * put their label on its own line there rather than fighting for width.
 */
.kd-home-map__links .kd-map__row-label {
	flex-basis: 100%;
	margin-bottom: 2px;
	font-size: 13px;
}

.kd-home-map__links .kd-map__row {
	gap: 8px;
	margin-top: 16px;
}

.kd-home-map__links a.kd-map__link {
	padding: 8px 15px;
	font-size: 13px;
}

.kd-map__row--cta {
	margin-top: 18px;
}

/* --- "Also serving": every other state, by region (2026-10-14) --- */

.kd-regions {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--kd-rule);
	text-align: left;
}

/* Scoped: .kd-inner-content p is (0,1,1) and outranks a bare class, so on
   /locations/ these would otherwise inherit 19px body type. */
.kd-regions .kd-regions__label {
	margin: 0 0 16px;
	color: var(--kd-headings);
	font-family: var(--kd-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.kd-regions__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 260px, 1fr ) );
	gap: 18px 32px;
}

.kd-regions .kd-region__name {
	margin: 0 0 4px;
	color: var(--kd-alt-brand);
	font-family: var(--kd-font-body);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.kd-regions .kd-region__states {
	margin: 0;
	color: var(--kd-body);
	font-size: 14px;
	line-height: 1.6;
}

/*
 * Both Astra's `.ast-single-post .entry-content a` and section 21's
 * `.kd-inner-content a:not(...)` underline at (0,2,1), so these match it and
 * win on source order.
 */
.kd-region__states a,
.kd-regions .kd-region__states a {
	color: var(--kd-body);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.kd-regions .kd-region__states a:hover,
.kd-regions .kd-region__states a:focus-visible {
	color: var(--kd-brand);
	border-bottom-color: var(--kd-brand);
}

/* The homepage band's regions span the whole card, under both columns. */
.kd-home-map__regions {
	grid-column: 1 / -1;
}

@media ( max-width: 782px ) {
	.kd-regions {
		margin-top: 22px;
		padding-top: 20px;
	}

	.kd-regions__grid {
		gap: 16px 24px;
	}
}

/* --- Map legend + all-states block (2026-10-14, round 3) --- */

.kd-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.kd-legend__item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--kd-body);
	font-family: var(--kd-font-body);
	font-size: 13px;
	line-height: 1.3;
	list-style: none;
}

.kd-legend__swatch {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 1px solid var(--kd-rule);
	border-radius: 3px;
}

/* Must track the three tiers in .claude/build/configure-us-map.php. */
.kd-legend__swatch--office {
	background: #8fb8dd;
}

.kd-legend__swatch--practice {
	background: #c7dcf0;
}

.kd-legend__swatch--other {
	background: #eef4fc;
}

.kd-home-map__legend .kd-legend {
	justify-content: flex-start;
	margin-top: 14px;
}

/* Plain-text states sit beside linked ones and must not look disabled. */
.kd-region__states span {
	color: var(--kd-body);
}

/*
 * The plugin sets cursor:pointer on every enabled state, but only the six with
 * a page actually navigate. A stylesheet rule beats the presentation attribute
 * it sets, so the other 45 get the default cursor back.
 */
#usmapbase path[id^="usmap_"],
#usvisns text {
	cursor: default;
}

/* Written at the same shape as the rule above: a bare #usmap_3 is (1,0,0) and
   loses to that rule's (1,1,1), so the qualifiers are load-bearing. */
#usmapbase path#usmap_3, #usvisns text#usvn_3,
#usmapbase path#usmap_5, #usvisns text#usvn_5,
#usmapbase path#usmap_6, #usvisns text#usvn_6,
#usmapbase path#usmap_28, #usvisns text#usvn_28,
#usmapbase path#usmap_31, #usvisns text#usvn_31,
#usmapbase path#usmap_43, #usvisns text#usvn_43 {
	cursor: pointer;
}

/* The all-states block above the footer. */
.kd-allstates {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 48px 56px;
}

.kd-allstates .kd-regions {
	margin-top: 0;
	padding: 32px 36px;
	border: 1px solid var(--kd-rule);
	border-top: 1px solid var(--kd-rule);
	border-radius: 12px;
	background: var(--kd-panel);
}

.kd-allstates .kd-regions__label {
	margin-bottom: 20px;
	font-family: var(--kd-font-heading);
	font-size: 20px;
}

/* Jump-link target: clear the sticky header when scrolled to. */
#all-states {
	scroll-margin-top: 120px;
}

@media ( max-width: 782px ) {
	.kd-allstates {
		padding: 0 20px 40px;
	}

	.kd-allstates .kd-regions {
		padding: 24px 22px;
	}

	.kd-legend {
		gap: 8px 16px;
	}
}

/* --- Contact page: nationwide callout (2026-10-14, round 4) --- */

.kd-nationwide {
	position: relative;
	margin: 0 0 28px;
	padding: 26px 30px 26px 34px;
	border-radius: 12px;
	background: var(--kd-panel);
	overflow: hidden;
}

/* Gold bar down the edge, the same accent the eyebrow pills use. */
.kd-nationwide::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 6px;
	background: var(--kd-gold);
}

/*
 * `.kd-inner-content p` is (0,1,1), so these are written at (0,2,0) to take
 * the size back off it -- a bare class here renders at 19px body type.
 */
.kd-nationwide .kd-nationwide__lead {
	margin: 0 0 8px;
	color: var(--kd-headings);
	font-family: var(--kd-font-heading);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.15;
}

.kd-nationwide .kd-nationwide__sub {
	margin: 0;
	color: var(--kd-body);
	font-size: 16px;
	line-height: 1.55;
}

@media ( max-width: 782px ) {
	.kd-nationwide {
		margin-bottom: 22px;
		padding: 22px 22px 22px 26px;
	}

	.kd-nationwide .kd-nationwide__lead {
		font-size: 24px;
	}

	.kd-nationwide .kd-nationwide__sub {
		font-size: 15px;
	}
}
