/* =========================================================
   WordPress fit-up
   The four files before this one are the approved design, copied
   unchanged from the prototype. This file only adapts it to the
   markup WordPress adds around it, plus the few pieces that are
   new in the WordPress version. Keep design changes in the design
   files, not here.
   ========================================================= */

/* ---------- Page wrappers ---------- */

/* Template parts and the post-content wrapper must not add space,
   and must not become the box the sticky navbar is confined to. */
.wp-site-blocks > .wp-block-template-part {
	display: contents;
}

.wp-site-blocks > * + *,
.chd-front > * + *,
.chd-front .wp-block-post-content > * + * {
	margin-block-start: 0;
}

.chd-front,
.chd-front .wp-block-post-content {
	padding: 0;
	max-width: none;
}

/* WordPress's own skip link replaces the prototype's. */
.skip-link.screen-reader-text:focus {
	z-index: 1000;
}

/* Logged-in editors see the admin toolbar above the sticky bars. */
@media (min-width: 601px) {
	.admin-bar .navbar,
	.admin-bar .site-menu {
		top: var(--wp-admin--admin-bar--height, 32px);
	}

	.admin-bar {
		scroll-padding-top: calc(var(--nav-h) + var(--space-md) + var(--wp-admin--admin-bar--height, 32px));
	}
}

@media (min-width: 601px) and (max-width: 1023px) {
	.admin-bar .masthead {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* ---------- Images from the Media Library ---------- */

.media img,
.plan__photo img {
	height: 100%;
}

/* An uploaded drawing in place of the theme's line drawing */
.plan__drawing--image {
	display: block;
}

.plan__drawing--image img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.hero__sheet--image .hero__image {
	display: block;
}

.hero__sheet--image .hero__image img {
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

/* ---------- Directory: location chips above the select ---------- */

.quote-form__chips {
	margin: 0 0 var(--space-xs);
}

.verify__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
}

.verify__summary::-webkit-details-marker {
	display: none;
}

.verify__summary::after {
	content: "+";
	font-family: var(--font-body);
	font-size: var(--fs-lead);
	letter-spacing: 0;
	line-height: 1;
}

.verify[open] .verify__summary::after {
	content: "−";
}

/* Builder listings for the chosen location */
.builders-list__rows a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.builders-list__rows a:hover {
	color: var(--corten);
}

.builders-list__checks .icon {
	display: inline-block;
	width: 0.95em;
	height: 0.95em;
	margin-right: 2px;
	vertical-align: -0.1em;
	color: var(--corten);
}

.builders-list__empty {
	padding-block: var(--space-xs);
	color: var(--muted);
	font-size: var(--fs-small);
}

/* ---------- Community: captions on project photos ---------- */

.showcase__link {
	display: block;
	height: 100%;
}

.showcase__link .media {
	height: 100%;
}

.showcase__item {
	position: relative;
}

.showcase__caption {
	position: absolute;
	left: var(--space-sm);
	bottom: var(--space-sm);
	padding: var(--space-3xs) var(--space-2xs);
	background: var(--ground);
	font-size: var(--fs-small);
	font-weight: var(--fw-medium);
}

/* ---------- Notes only editors see, in the editor preview ---------- */

.chd-editor-note {
	max-width: var(--max);
	margin: var(--space-sm) auto;
	padding: var(--space-xs) var(--space-sm);
	border: 1px dashed var(--corten);
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-small);
}
