/* Contact form: Contact Form 7's own wrappers inside the source's form markup. */
.form__checkbox-field .wpcf7-acceptance,
.form__checkbox-field .wpcf7-list-item {
	display: contents;
}

.contact-us__btns .wpcf7-spinner {
	display: none;
}

/* Headings: a case study card's title is an h2 and an attorney's Bar Admissions and Education are h4s
   (the outline), drawn as the source's h3s. */
.blog__item > .link-full > h2.blog__item-title {
	margin-bottom: 16px;
}

h4.dropdown__btn {
	margin-top: 0;
}

h3.process__subtitle {
	color: inherit;
	margin: 0;
}

/* Contrast (WCAG AA 4.5:1): the eyebrow on #f5f1ee was 4.09, the last crumb on the contact page's white
   2.68, a link in a hero's white copy on #282c32 3.04. */
.category-text:not(.category__text_hero) {
	color: #8f6338;
}

/* The contact page's crumbs sit on white: the home crumb is drawn dark like the source's black variant,
   or it is white on white and shows only on hover. */
.page-contact-us .breadcrumb__link {
	color: var(--blue);
}

.page-contact-us .breadcrumb__link:hover {
	color: var(--accent);
}

.page-contact-us .breadcrumb__item:last-child .breadcrumb__link {
	color: #a06832;
}

/* A link in the about section's copy on its beige (#f6f2ef): the accent #9b6b3c gave 4.13, its darker
   shade 4.70. Hover keeps the source's black. */
.about .about__rich-text a:not(:hover) {
	color: #8f6338;
}

.rich-text.rich-text__white a {
	color: #d88d44;
}

/* A link in an open dropdown's or FAQ answer's copy is white like the copy around it: underlined to show. */
.dropdown__content p a {
	text-decoration: underline;
}

/* A focused form field and the consultation note's button show it: the source draws no outline. */
.form__input:focus-visible,
.form__textarea:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.review-overlay__btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Blog hub: Load More is a link to the next page now, and keeps the width the source's <button> had. */
@media screen and (min-width: 480px) {
	a.btn.btn-border.blog__btn {
		width: fit-content;
	}
}

/* A post's and a case study's CTA card: the source's min-width of 400px ran 26-42px past a 390 screen. */
@media screen and (max-width: 479px) {
	.blog-content__cta {
		min-width: 0;
	}

	/* A post's body: the firm's e-mail address, one long word, was cut 8-55px at the column's edge, and a
	   table up to 358px; the address wraps and a table scrolls in its own strip. */
	.rich-text__blog p,
	.rich-text__blog li {
		overflow-wrap: break-word;
	}

	.rich-text__blog table {
		display: block;
		overflow-x: auto;
	}
}

/* A post's table: a word longer than its fixed column («Possessing/Viewing», «decriminalization») ran into
   the next cell and was cut at the table's edge; it wraps inside its cell. */
.rich-text__blog td,
.rich-text__blog th {
	overflow-wrap: anywhere;
}

/* A post's photo slider: until the source's script builds it at DOMContentLoaded, its start marker holds
   the slider's 500px and the figures wait unseen, so the text below does not jump up when they go. */
.rich-text__blog > p.blog-content__slider-start {
	height: 500px;
	margin: 0;
	visibility: hidden;
}

.rich-text__blog > p.blog-content__slider-start ~ figure:has(~ p.blog-content__slider-end),
.rich-text__blog > p.blog-content__slider-end {
	display: none;
}

/* A library image in a body carries core's width and height so its box is held before it loads (a firm news
   post's top photo pushed the text down, CLS 0.09): the attributes give the ratio, the height stays auto. */
.rich-text img[class*="wp-image-"][height] {
	height: auto;
}

/* Badges and posts strips: swiper's sheet, which clips `.swiper`, loads when a slider comes into view; until
   then the badges ran ~950px and the posts 130px past a 390 screen, and it scrolled sideways. The same clip,
   from the start. */
.trust__container.swiper,
.blog__swiper.swiper {
	overflow: hidden;
}

/* 404, by its Figma frame (919:4153): no line under the heading, the button 74px tall and 40px under it. */
.btn.error-page__btn {
	padding: 24px 20px;
}

.error-page__content > h2 + .error-page__btn {
	margin-top: 16px;
}

/* At 1440 the frame sets the 404 32px above the heading's top, the light band's end 140px under the button
   and the heading 108px in from the right edge (from 1200px, where the 638px column still fits). */
@media screen and (min-width: 992px) {
	.hero.hero__error-page {
		padding-bottom: 142px;
	}

	.error-page__title {
		margin-top: -32px;
	}

}

@media screen and (min-width: 1200px) {
	.error-page__content {
		margin-right: 108px;
	}
}

/* A video's poster until its player is asked for (inc/site/plyr-facade.php): the box the Plyr player
   takes, the wrapper's height where it has one, 16:9 where not, and Plyr's large play button. */
.plyr-facade {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 14px;
	background: #000;
}

.w-embed:has(.plyr-facade) {
	margin: 32px 0px;
}

.plyr-facade__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.plyr-facade__play {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.plyr-facade__play svg {
	box-sizing: content-box;
	display: block;
	margin: auto;
	padding: 25px 23px 25px 27px;
	border-radius: 50%;
	background: var(--accent, #00b2ff);
	color: #fff;
	transition: transform 0.2s ease;
}

.plyr-facade__play:hover svg {
	transform: scale(1.06);
}

.plyr-facade__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.plyr-facade__play:focus-visible svg {
	box-shadow: 0 0 0 4px #fff;
}

.plyr-facade[aria-busy] .plyr-facade__play svg {
	opacity: 0.7;
}

/* Home hero, 768-991px: the source runs the intro's white text and the stats over the attorneys' faces.
   The stats wrap to the intro's measure, and the photo, still bottom-right under the text, is sized so the
   faces sit right of that column: the left face starts ~10px past it, the right one ends 16px from the edge. */
@media screen and (min-width: 768px) and (max-width: 991px) {
	.hero__wrapper.hero_hp .trasted {
		max-width: 425px;
	}

	.hero__wrapper.hero_hp .hero__lawyers {
		--hero-lawyers-w: min(710px, (100% - 467px) * 1.5);
		width: var(--hero-lawyers-w);
		height: auto;
		right: calc(16px - var(--hero-lawyers-w) * 0.2);
	}
}
