/* The source's 404 sizes its block from an inline <style> of its own page, which no captured page has. */
.page-404 .error__container {
	min-height: calc(var(--app-height) - var(--footer-height) - var(--header-height) + 1px);
}

/* The footer's legal links ran past a phone's edge (to 500px on /es), and with no maximum-scale in the viewport
   a phone laid the page out that wide: the fixed header's burger went off the screen. They wrap instead. */
@media screen and (max-width: 479px) {
	.footer__bottom-nav {
		flex-wrap: wrap;
	}
}

/* JuvoLeads' closed chat (#fd-video-widget-tab: its round video and greeting bubble, fixed 10px above the bottom
   corner, 150px tall from 769px, 100px to 768px by its own CSS) covered the footer's last links at the page's end.
   While it or the open card is on the page, the footer's bottom row ends above it. */
body:has(#fd-video-widget.fd-show, #fd-video-widget-tab.fd-show) .footer__bottom {
	padding-bottom: 112px;
}

@media screen and (min-width: 769px) {
	body:has(#fd-video-widget.fd-show, #fd-video-widget-tab.fd-show) .footer__bottom {
		padding-bottom: 160px;
	}
}

/* Termly's consent banner (z-index 999999) sat under JuvoLeads' chat (9999999991 closed, 99999999999 open, both
   clamped to the largest z-index), whose corner covered its Decline and Accept at 1440. While the banner is on the
   page, the chat goes just under it. */
body:has([class*="termly-styles-termly-banner"]) #fd-video-widget,
body:has([class*="termly-styles-termly-banner"]) #fd-video-widget-tab {
	z-index: 999998 !important;
}

/* Contact Form 7 draws a spinner after its submit; the source's footer row has none, and it pushed the phone 48px right. */
.contact-form .wpcf7-spinner {
	display: none;
}

/* A focused field shows it: the source only turns its background from white to cream. */
.contact-form__input:focus {
	border-color: var(--main-blue);
	box-shadow: inset 0 0 0 1px var(--main-blue);
}

/* /contact-us's h1 is its contact block's title, drawn as the source drew it there, an h2. */
.page-contact-us .contact__rich-content h1 {
	color: inherit;
	font-size: 52px;
	text-transform: uppercase;
}

@media screen and (max-width: 991px) {
	.page-contact-us .contact__rich-content h1 {
		font-size: 32px;
	}
}

/* A link in the navy contact block's text (the phone on /es/lawrence) kept the browser's blue, unreadable there:
   it takes the paragraph's white, underlined so it still reads as a link. */
.contact__rich-content a {
	color: inherit;
	text-decoration: underline;
}

/* The same in the navy blog CTA's text (the phone on /es/methuen and /es/abogado-maquinaria-defectuosa-en-construccion-boston):
   1.19:1 in the browser's blue. A classed link (a button) keeps its own colour. */
.blog-cta__content a:not([class]) {
	color: inherit;
	text-decoration: underline;
}

/* "Why Choose Us" under the play button sat white on the video's photo at 1.95:1: it gets the button's own navy behind it. */
.team-vid .team-vid__btn-text {
	padding: 0 8px;
	background-color: var(--main-blue);
}

/* A link in a focus card's text differed from its paragraph by colour alone (1.23:1). */
.where-card__text p a {
	text-decoration: underline;
}

/* A white PPC card's title sat in the brand yellow on white at 1.91:1: the same hue darkened to 3.16:1 (AA, large text). */
.ppc-card.is-white .ppc-card__title {
	color: #bf8614;
}

/* The Spanish PPC heroes' review badge is a 187x120 card, not the English one-line stars the 34px slot was
   cut for: once Elfsight draws it, the slot takes its height, so it neither covers the H1 nor is cut. */
.ppc-hero .ppc-elfsight.stars:has(> .elfsight-app-ed4212b7-b8d3-464a-904f-bb56ae990631 > *) {
	height: auto;
	min-height: 34px;
}

/* Testimonials: the videos wait in the list until the page's script moves them into Elfsight's grid, three per
   "Load more"; the source left the rest stacked at full width below it. Without the grid (no consent yet),
   they show as cards of its size. */
.testim-gal:has([class*='Grid__GridContainer']) > .reviews__videos {
	display: none;
}
.testim-gal > .reviews__videos .w-dyn-items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 16px;
}
.testim-gal > .reviews__videos + .reviews__videos {
	margin-top: 24px;
}
.testim-gal > .reviews__videos .team-vid {
	aspect-ratio: 416 / 499;
}
.testim-gal > .reviews__videos .team-vid__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (min-width: 768px) {
	.testim-gal > .reviews__videos .w-dyn-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 0 72px;
	}
}
@media (min-width: 992px) {
	.testim-gal > .reviews__videos .w-dyn-items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Testimonials: the row of video cards above the reviews grid (client's sheet, 2026-11), dressed as the
   grid's videos; the grid's own top padding shrinks under it. */
.testim-gal__top-items {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 120px 16px 0;
}
.testim-gal__top + .testim-gal__container {
	padding-top: 64px;
}
.testim-gal__top-item .team-vid {
	aspect-ratio: 416 / 499;
}
.testim-gal__top-item .team-vid__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.testim-gal__top-item .team-vid__square {
	background-color: #fff;
}
.testim-gal__top-item .team-vid__square::after {
	border-left-color: var(--main-blue);
}
/* The disclaimer under that row (client, 2026-11), in the PPC form disclaimer's small grey type. */
.testim-gal__top-note {
	max-width: 1440px;
	margin: 16px auto 0;
	padding: 0 16px;
	color: #757575;
	font-size: .75rem;
	line-height: 1.2;
}
@media (min-width: 768px) {
	.testim-gal__top-items {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding-left: 72px;
		padding-right: 72px;
	}
	.testim-gal__top-note {
		padding-left: 72px;
		padding-right: 72px;
	}
}
@media (min-width: 992px) {
	.testim-gal__top-items {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.testim-gal__top-item .team-vid {
		min-width: 0;
		margin-left: 0;
	}
}
@media (max-width: 991px) {
	.testim-gal__top-items {
		padding-top: 60px;
	}
	.testim-gal__top + .testim-gal__container {
		padding-top: 40px;
	}
}

/* Videos: a topic's cards (/videos, /es/videos), the videos list's tile with its play button shown, the
   article's title and a line of text under it; all shown, three, two, then one a row. */
.video-topics__heading {
	margin-bottom: 40px;
}
.video-topics__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px 24px;
}
.video-topics__item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.video-topics .team-vid {
	width: 100%;
	margin-left: 0;
}
.video-topics .team-vid__btn {
	display: flex;
}
.video-topics__title {
	color: var(--main-blue);
	margin-top: 20px;
}
.video-topics__link {
	color: inherit;
	text-decoration: none;
	transition: color .3s;
}
.video-topics__link:hover {
	color: var(--main-grey-text);
}
.video-topics__text {
	margin-top: 12px;
	font-size: 16px;
	line-height: 160%;
}
@media screen and (max-width: 991px) {
	.video-topics__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}
}
@media screen and (max-width: 767px) {
	.video-topics__heading {
		margin-bottom: 32px;
	}
	.video-topics__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* The focus areas' dropdown (to 991px) draws its head and items as flex buttons: a one-line label sat left, one
   that wrapped took the button's width and the button's centring (/es home, "Reclamaciones de compensación
   laboral"). Every label starts at the left, as the one-line ones did. */
@media screen and (max-width: 991px) {
	.where-controls__head-btn,
	.where-controls__tab-btn {
		text-align: left;
	}
}

/* A case result's popup (the source's: 90vh, centred) ran under the fixed header on a phone, where 90vh is taller
   than the screen while the browser's bar shows: its amount and close button were cut off. Below 768px it starts
   under the header and ends above the screen's bottom, scrolling inside; its text clears the close button, and
   JuvoLeads' closed chat, drawn above it, steps aside while it is open. */
@media screen and (max-width: 767px) {
	.case-popup__body {
		top: calc(var(--header-height, 62px) + 12px);
		transform: translateX(-50%);
	}
	.case-popup__content {
		max-height: calc(100vh - var(--header-height, 62px) - 24px);
		max-height: calc(100svh - var(--header-height, 62px) - 24px);
		padding: 72px 20px 32px;
	}
	body:has(.case-popup.opened) #fd-video-widget-tab {
		visibility: hidden;
	}
}

/* A table in a blog post's text: the source has none, so it is dressed here, scrolling sideways on a phone. */
.post-body__content-col:has(.post-body__table-wrap),
.post-body__rich-content:has(.post-body__table-wrap) {
	min-width: 0;
}
.post-body__table-wrap {
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	margin: 24px 0;
}
.post-body__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}
.post-body__table th,
.post-body__table td {
	padding: 12px 16px;
	border: 1px solid var(--grey-border);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}
.post-body__table th {
	text-align: center;
	vertical-align: middle;
	background-color: var(--main-blue);
	color: #fff;
	font-weight: 700;
}
.post-body__table tbody tr:nth-child(even) {
	background-color: var(--yellow-light);
}
@media screen and (max-width: 767px) {
	.post-body__table {
		min-width: 560px;
		font-size: 14px;
	}
	.post-body__table th,
	.post-body__table td {
		padding: 10px 12px;
	}
}
