/* ==========================================================================
   HD Custom Dev — What We Do module
   Scoped to .hd-wwd-page (Approach, the six services, Case Studies) and
   .hd-cs-single (single case studies). Never affects Home / Mountain West.
   ========================================================================== */

/* --- Shared chips --- */
.hd-wwd-page .hd-cs-chip,
.hd-cs-single .hd-cs-chip {
	display: inline-block;
	padding: 4px 12px;
	font-family: 'Inter', sans-serif;
	font-size: 12px; font-weight: 600;
	letter-spacing: 1px; text-transform: uppercase;
	border-radius: 999px;
	margin: 0 6px 6px 0;
}
.hd-wwd-page .hd-cs-chip--cs_service,
.hd-cs-single .hd-cs-chip--cs_service {
	color: #b85c38;
	background: rgba(184, 92, 56, 0.1);
}
.hd-wwd-page .hd-cs-chip--cs_region,
.hd-cs-single .hd-cs-chip--cs_region {
	color: #4a6878;
	background: rgba(74, 104, 120, 0.12);
}

/* --- Case-study cards (grid + proof strips) --- */
.hd-wwd-page .hd-cs-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hd-wwd-page .hd-cs-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(47, 52, 55, 0.14);
}
.hd-wwd-page .hd-cs-card-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background-color: #2f3437;
	background-size: cover;
	background-position: center;
}
.hd-wwd-page .hd-cs-card-media[data-noimg]::after {
	content: 'SOLID EARTH';
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px; font-weight: 700; letter-spacing: 3px;
	color: rgba(255, 255, 255, 0.35);
}
.hd-wwd-page .hd-cs-featured-flag {
	position: absolute;
	top: 18px; left: 18px;
	padding: 5px 14px;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase;
	color: #ffffff;
	background: #b85c38;
	border-radius: 999px;
}
.hd-wwd-page .hd-cs-card-body {
	padding: 24px 26px 26px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.hd-wwd-page .hd-cs-card-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px; font-weight: 700;
	line-height: 1.35;
	margin: 4px 0 8px;
}
.hd-wwd-page .hd-cs-card-title a {
	color: #2f3437; text-decoration: none;
	transition: color 0.2s ease;
}
.hd-wwd-page .hd-cs-card-title a:hover { color: #b85c38; }
.hd-wwd-page .hd-cs-card-result {
	font-family: 'Inter', sans-serif;
	font-size: 15px; line-height: 1.6;
	color: #555a5e;
	margin: 0 0 14px;
}
.hd-wwd-page .hd-cs-card-read {
	margin-top: auto;
	font-family: 'Inter', sans-serif;
	font-size: 14px; font-weight: 600;
	color: #b85c38;
	text-decoration: none;
}
.hd-wwd-page .hd-cs-card-read:hover { color: #914324; }

/* Featured project card */
.hd-wwd-page #hd-cs-featured .hd-cs-card--featured {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
}
.hd-wwd-page .hd-cs-card--featured .hd-cs-card-media { min-height: 340px; aspect-ratio: auto; }
.hd-wwd-page .hd-cs-card--featured .hd-cs-card-body {
	padding: 40px 44px;
	justify-content: center;
}
.hd-wwd-page .hd-cs-card--featured .hd-cs-card-title { font-size: 30px; }

/* --- Proof strip layout (service pages) --- */
.hd-wwd-page .hd-cs-strip {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

/* --- /case-studies grid + filters --- */
.hd-wwd-page #hd-cs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
	transition: opacity 0.25s ease;
}
.hd-wwd-page #hd-cs-grid.hd-cs-grid--fading { opacity: 0.25; }
.hd-wwd-page .hd-cs-cell--in { animation: hd-cs-in 0.45s ease both; }
@keyframes hd-cs-in {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: none; }
}

.hd-wwd-page #hd-cs-filterbar > div {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.hd-wwd-page #hd-cs-filterbar br { display: none; } /* wpautop artifact */
.hd-wwd-page #hd-cs-filterbar {
	background: rgba(250, 248, 244, 0.94);
	border-radius: 16px;
	padding: 18px 22px;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.08);
}
.hd-wwd-page .hd-cs-filter-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase;
	color: #555a5e;
	margin: 10px 12px 6px 0;
	display: inline-block;
	min-width: 76px;
}
.hd-wwd-page .hd-cs-pill {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 7px 18px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; font-weight: 600;
	letter-spacing: 0.5px;
	color: #2f3437;
	background: transparent;
	border: 2px solid rgba(47, 52, 55, 0.25);
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}
.hd-wwd-page .hd-cs-pill:hover,
.hd-wwd-page .hd-cs-pill:focus {
	border-color: #b85c38; color: #b85c38; outline: none;
}
.hd-wwd-page .hd-cs-pill.active {
	background: #b85c38; border-color: #b85c38; color: #ffffff;
}
.hd-wwd-page .hd-cs-pill[data-region].active {
	background: #4a6878; border-color: #4a6878;
}
.hd-wwd-page #hd-cs-search {
	width: 100%;
	margin-top: 8px;
	padding: 10px 16px;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: #2f3437;
	background: #ffffff;
	border: 1px solid rgba(47, 52, 55, 0.2);
	border-radius: 10px;
}
.hd-wwd-page #hd-cs-search:focus {
	outline: none;
	border-color: #b85c38;
	box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}
.hd-wwd-page #hd-cs-status {
	text-align: center;
	font-family: 'Inter', sans-serif;
	color: #555a5e;
	min-height: 24px;
	margin-top: 20px;
}
.hd-wwd-page #hd-cs-more {
	display: inline-block;
	margin-top: 10px;
	padding: 14px 42px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px; font-weight: 700;
	letter-spacing: 1.5px; text-transform: uppercase;
	color: #2f3437;
	background: transparent;
	border: 2px solid #2f3437;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
}
.hd-wwd-page #hd-cs-more:hover { background: #2f3437; color: #ffffff; }
.hd-wwd-page #hd-cs-more:disabled { opacity: 0.5; cursor: wait; }

/* --- Single case study --- */
.hd-cs-single .hd-cs-tags { margin-bottom: 14px; }
.hd-cs-single .hd-cs-result-line {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px; font-weight: 600;
	line-height: 1.5;
	color: #2f3437;
	border-left: 4px solid #b85c38;
	padding-left: 18px;
	margin: 0 0 30px;
}
.hd-cs-single .hd-cs-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	margin: 34px 0;
	padding: 28px;
	background: #faf8f4;
	border-radius: 16px;
	text-align: center;
}
.hd-cs-single .hd-cs-stats span {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 34px; font-weight: 700;
	color: #b85c38;
}
.hd-cs-single .hd-cs-stats div {
	font-family: 'Inter', sans-serif;
	font-size: 14px; color: #555a5e;
	letter-spacing: 0.5px;
}
.hd-cs-single blockquote {
	border-left: 4px solid #b85c38;
	margin: 34px 0;
	padding: 6px 0 6px 22px;
	font-family: 'Montserrat', sans-serif;
	font-size: 20px; font-weight: 500;
	line-height: 1.6;
	color: #2f3437;
}
.hd-cs-single .hd-cs-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 44px;
	padding-top: 24px;
	border-top: 1px solid rgba(47, 52, 55, 0.15);
	font-family: 'Inter', sans-serif;
}
.hd-cs-single .hd-cs-footer a {
	color: #b85c38; font-weight: 600; text-decoration: none;
}
.hd-cs-single .hd-cs-footer-cta {
	padding: 12px 28px;
	border: 2px solid #b85c38;
	border-radius: 10px;
	transition: all 0.25s ease-in-out;
}
.hd-cs-single .hd-cs-footer-cta:hover { background: #b85c38; color: #ffffff; }

/* --- Service pages: capability toggles polish + related links --- */
.hd-wwd-page .hd-svc-related {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.hd-wwd-page .hd-svc-related a {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 150px;
	padding: 24px 26px;
	background-color: #2f3437;
	background-size: cover;
	background-position: center;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.12);
	font-family: 'Montserrat', sans-serif;
	font-size: 17px; font-weight: 700;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	text-decoration: none;
	transition: all 0.25s ease-in-out;
}
.hd-wwd-page .hd-svc-related a::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.25s ease-in-out;
	pointer-events: none;
}
.hd-wwd-page .hd-svc-related a:hover,
.hd-wwd-page .hd-svc-related a:focus {
	transform: translateY(-3px);
	color: #ffffff;
	box-shadow: 0 16px 36px rgba(15, 17, 21, 0.3);
	outline: none;
}
.hd-wwd-page .hd-svc-related a:hover::after,
.hd-wwd-page .hd-svc-related a:focus::after {
	background: rgba(255, 255, 255, 0.14);
}
@media (prefers-reduced-motion: reduce) {
	.hd-wwd-page .hd-svc-related a,
	.hd-wwd-page .hd-svc-related a::after { transition: none !important; }
}
.hd-wwd-page .hd-svc-related a span {
	display: block;
	margin-top: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
}
.hd-wwd-page .hd-svc-related a[href="/sitework/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070037/se-svc-sitework.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/earthwork/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070050/se-svc-earthwork.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/utility-infrastructure/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070100/se-svc-utility.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/concrete-structures/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070110/se-svc-concrete.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/trucking-heavy-hauls/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070120/se-svc-trucking.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/equipment-procurement-training/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10070132/se-svc-equipment.jpg'); }
.hd-wwd-page .hd-svc-related a[href="/technology-equipment/"] { background-image: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.42)), url('https://solidearth.storage.googleapis.com/wp-content/uploads/2026/07/10062624/se-te-te-hero.jpg'); }

/* --- Approach: plan → build → hand off steps --- */
.hd-wwd-page .hd-ap-step {
	position: relative;
	padding-left: 70px;
	margin-bottom: 70px;
	transition: color 0.5s ease;
}
.hd-wwd-page .hd-ap-step::before {
	content: attr(data-step);
	position: absolute; left: 0; top: 0;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px; font-weight: 700;
	color: #2f3437;
	border: 3px solid #2f3437;
	border-radius: 50%;
	background: #fff;
	transition: all 0.4s ease;
}
.hd-wwd-page .hd-ap-step::after {
	content: '';
	position: absolute; left: 20.5px; top: 48px;
	width: 3px; height: calc(100% + 70px - 44px);
	background: rgba(47, 52, 55, 0.15);
}
.hd-wwd-page .hd-ap-step:last-child::after { display: none; }
.hd-wwd-page .hd-ap-step.current::before {
	color: #ffffff;
	background: #b85c38;
	border-color: #b85c38;
}
.hd-wwd-page .hd-ap-step h3 { font-size: 22px !important; margin: 4px 0 8px; }
.hd-wwd-page .hd-ap-step p {
	font-family: 'Inter', sans-serif;
	font-size: 16px; line-height: 1.7;
	color: #555a5e;
	max-width: 620px;
}

@media (max-width: 900px) {
	.hd-wwd-page #hd-cs-featured .hd-cs-card--featured { grid-template-columns: 1fr; }
	.hd-wwd-page .hd-cs-card--featured .hd-cs-card-media { min-height: 220px; }
	.hd-wwd-page .hd-cs-card--featured .hd-cs-card-body { padding: 26px 24px; }
	.hd-wwd-page .hd-cs-card--featured .hd-cs-card-title { font-size: 24px; }
	.hd-wwd-page .hd-ap-step { padding-left: 58px; margin-bottom: 46px; }
	.hd-wwd-page .hd-ap-step::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hd-wwd-page .hd-cs-cell--in { animation: none !important; }
	.hd-wwd-page .hd-cs-card,
	.hd-wwd-page #hd-cs-grid,
	.hd-wwd-page .hd-cs-pill,
	.hd-wwd-page .hd-svc-related a,
	.hd-wwd-page .hd-ap-step,
	.hd-wwd-page .hd-ap-step::before { transition: none !important; animation: none !important; }
}

/* --- Capability diagrams: text left, tall diagram right, click to zoom --- */
.hd-wwd-page .fusion-accordian .panel-body,
.hd-wwd-page .fusion-accordian .toggle-content {
	display: flex;
	align-items: center;
	gap: 28px;
}
.hd-wwd-page .fusion-accordian .panel-body > * { min-width: 0; }
.hd-wwd-page .fusion-accordian .panel-body > p,
.hd-wwd-page .fusion-accordian .toggle-content > p {
	flex: 1 1 auto;
	margin: 0;
}
/* the diagram (or the <p> wpautop may wrap it in) goes right, sized by height */
.hd-wwd-page .fusion-accordian .panel-body > *:has(.hd-cap-diagram),
.hd-wwd-page .fusion-accordian .toggle-content > *:has(.hd-cap-diagram) {
	order: 2;
	flex: 0 0 auto;
	margin: 0;
	line-height: 0;
}
.hd-wwd-page .fusion-accordian .hd-cap-diagram {
	order: 2;
	flex: 0 0 400px; /* fixed frame - never shrinks in the flex row */
	width: 400px;
	min-width: 400px;
	aspect-ratio: 1184 / 864; /* native ratio of the diagram set -> 400x292, flush frame */
	height: auto;
	object-fit: cover;
	margin: 0;
	border-radius: 12px;
	border: 1px solid rgba(47, 52, 55, 0.08);
	cursor: zoom-in;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hd-wwd-page .fusion-accordian .hd-cap-diagram:hover,
.hd-wwd-page .fusion-accordian .hd-cap-diagram:focus {
	box-shadow: 0 10px 28px rgba(47, 52, 55, 0.18);
	transform: scale(1.01);
	outline: none;
}
@media (max-width: 800px) {
	.hd-wwd-page .fusion-accordian .panel-body,
	.hd-wwd-page .fusion-accordian .toggle-content {
		flex-direction: column;
		align-items: center;
	}
	.hd-wwd-page .fusion-accordian .hd-cap-diagram {
		width: 100%;
		max-width: 400px;
	}
}

/* --- Zoom modal for capability diagrams --- */
body.hd-cap-modal-open { overflow: hidden; }
#hd-cap-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	background: rgba(15, 17, 21, 0.78);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: zoom-out;
}
#hd-cap-modal.open { display: flex; }
#hd-cap-modal figure {
	margin: 0;
	background: #faf8f4;
	border-radius: 16px;
	padding: 18px 18px 12px;
	max-width: min(1100px, 92vw);
	text-align: center;
	position: relative;
	cursor: default;
	animation: hd-cap-pop 0.2s ease;
}
#hd-cap-modal img {
	max-width: 100%;
	max-height: 78vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	display: block;
	margin: 0 auto;
}
#hd-cap-modal figcaption {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #2f3437;
	padding-top: 12px;
}
#hd-cap-modal .hd-cap-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: #b85c38;
	color: #ffffff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(15, 17, 21, 0.3);
	transition: background 0.2s ease;
}
#hd-cap-modal .hd-cap-modal-close:hover,
#hd-cap-modal .hd-cap-modal-close:focus {
	background: #914324;
	outline: none;
}
@keyframes hd-cap-pop {
	from { opacity: 0; transform: scale(0.96); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	#hd-cap-modal figure { animation: none !important; }
	.hd-wwd-page .fusion-accordian .hd-cap-diagram { transition: none !important; }
}

/* --- Regional hero: equal-width CTA pair, symmetric around center --- */
.hd-wwd-page .region-hero .fusion-button {
	width: 400px;
	max-width: 100%;
	text-align: center;
	justify-content: center;
}
@media (max-width: 640px) {
	.hd-wwd-page .region-hero .fusion-button { width: 100%; }
}

/* --------------------------------------------------------------------------
 * Gravity Forms fixes on service inquiry forms
 * ------------------------------------------------------------------------ */

/* Single-file upload inputs are height-capped at 38px by the theme, which
 * clips the native Choose File button. Let them size to their content. */
.hd-wwd-page .gform_wrapper input[type="file"] {
	height: auto;
	min-height: 50px;
	line-height: 1.4;
}

/* Checkbox/radio group labels: same breathing room as the connect forms. */
.hd-wwd-page .gform_wrapper .gfield--type-checkbox legend.gfield_label,
.hd-wwd-page .gform_wrapper .gfield--type-radio legend.gfield_label {
	margin-bottom: 12px !important; /* Avada sets 0 !important */
}

/* --- Capability tile cards (2026-08-23) ------------------------------------
   Replaces the capability accordion toggles on the six service pages.
   Everything is scoped to .hd-wwd-page, a body class added only on What We Do
   pages, so Home and Mountain West cannot be affected by any rule here.
   The reveal happens ON the tile: hover/focus on pointer devices, tap on touch
   (JS flips aria-expanded). Styling deliberately echoes .hd-svc-related - same
   radius, shadow, gradient and lift - just larger.
--------------------------------------------------------------------------- */
.hd-wwd-page .hd-cap-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 0;
}
@media (min-width: 560px)  { .hd-wwd-page .hd-cap-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .hd-wwd-page .hd-cap-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1160px) { .hd-wwd-page .hd-cap-tiles { grid-template-columns: repeat(4, 1fr); } }

.hd-wwd-page .hd-cap-tile {
	position: relative;
	overflow: hidden;
	display: block;
	width: 100%;
	min-height: 210px;
	aspect-ratio: 3 / 2;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background-color: #2f3437;
	box-shadow: 0 8px 24px rgba(47, 52, 55, 0.12);
	text-align: left;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.hd-wwd-page .hd-cap-tile__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 0.5s ease;
}
.hd-wwd-page .hd-cap-tile__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 17, 21, 0.85), rgba(15, 17, 21, 0.30));
}
.hd-wwd-page .hd-cap-tile__label {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 20px 22px;
	font-family: 'Montserrat', sans-serif;
	font-size: 17px; font-weight: 700; line-height: 1.3;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
	transition: opacity 0.25s ease-in-out;
}
.hd-wwd-page .hd-cap-tile__reveal {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 18px 20px;
	background: rgba(15, 17, 21, 0.92);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}
.hd-wwd-page .hd-cap-tile__reveal-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px; font-weight: 700; line-height: 1.3;
	color: #ffffff;
}
.hd-wwd-page .hd-cap-tile__reveal-title::after {
	content: '';
	display: block;
	width: 44px; height: 2px;
	margin-top: 8px;
	background: var(--awb-color5, #b85c38);
}
.hd-wwd-page .hd-cap-tile__reveal-body {
	font-family: 'Inter', sans-serif;
	font-size: 14px; font-weight: 400; line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
	overflow-y: auto;
}

/* Reveal states: pointer hover, keyboard focus, and tap (aria-expanded). */
.hd-wwd-page .hd-cap-tile:hover .hd-cap-tile__reveal,
.hd-wwd-page .hd-cap-tile:focus-visible .hd-cap-tile__reveal,
.hd-wwd-page .hd-cap-tile[aria-expanded="true"] .hd-cap-tile__reveal {
	opacity: 1;
	visibility: visible;
}
.hd-wwd-page .hd-cap-tile:hover .hd-cap-tile__label,
.hd-wwd-page .hd-cap-tile:focus-visible .hd-cap-tile__label,
.hd-wwd-page .hd-cap-tile[aria-expanded="true"] .hd-cap-tile__label {
	opacity: 0;
}
.hd-wwd-page .hd-cap-tile:hover,
.hd-wwd-page .hd-cap-tile:focus-visible,
.hd-wwd-page .hd-cap-tile[aria-expanded="true"] {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(15, 17, 21, 0.30);
}
.hd-wwd-page .hd-cap-tile:hover .hd-cap-tile__media,
.hd-wwd-page .hd-cap-tile[aria-expanded="true"] .hd-cap-tile__media {
	transform: scale(1.04);
}
.hd-wwd-page .hd-cap-tile:focus-visible {
	outline: 3px solid var(--awb-color5, #b85c38);
	outline-offset: 3px;
}

/* Murph's requirement: every HD module honours the OS reduced-motion setting. */
@media (prefers-reduced-motion: reduce) {
	.hd-wwd-page .hd-cap-tile,
	.hd-wwd-page .hd-cap-tile__media,
	.hd-wwd-page .hd-cap-tile__label,
	.hd-wwd-page .hd-cap-tile__reveal { transition: none !important; }
	.hd-wwd-page .hd-cap-tile:hover,
	.hd-wwd-page .hd-cap-tile:focus-visible,
	.hd-wwd-page .hd-cap-tile[aria-expanded="true"] { transform: none; }
	.hd-wwd-page .hd-cap-tile:hover .hd-cap-tile__media,
	.hd-wwd-page .hd-cap-tile[aria-expanded="true"] .hd-cap-tile__media { transform: none; }
}
