/* ---------- base block layout (no reliance on block "layout" JSON) ---------- */

/* source is Tailwind, which resets box-sizing to border-box globally (Preflight).
   WP core defaults to content-box, which silently inflates any padded element
   given a percentage width/flex-basis (padding gets added on top). */
*, *::before, *::after {
	box-sizing: border-box;
}

/* Tailwind Preflight also sets this on body sitewide — at the same numeric
   font-weight, "antialiased" renders visibly thinner/lighter than the
   browser's own default smoothing, which was making every piece of text on
   every page look subtly heavier than the design. */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* WordPress sets an explicit global color on every <a> (a:where(:not(.wp-element-button))),
   which wins over inheriting a parent's intended color since it's set directly on
   the anchor itself, not just left to inherit. core/post-terms renders its color
   (whether a fontSize/style attribute or a wrapping context) on the OUTER div,
   with the actual link text in a nested <a> — so without this, every post-terms
   badge/category link silently ignores its intended color sitewide. */
.wp-block-post-terms a {
	color: inherit;
}

p {
	margin: 0;
}

/* Scoped to .dimecc-article-body specifically, NOT the bare .wp-block-post-content
   class — front-page.html and page.html both use an unmodified wp:post-content
   block as their generic "insert this page's own content here" placeholder, so
   a bare .wp-block-post-content selector matches every plain <p> on every page
   on the site, not just the long-form article/event body text this rule is
   actually meant for (source: text-lg on the body-paragraphs wrapper in
   news-article.tsx/event-detail.tsx, 1.125rem). */
.dimecc-article-body :where(p) {
	font-size: 1.125rem;
	color: #475569;
	line-height: 1.625;
	margin: 0 0 1.5rem;
}

.wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 768px) {
	.wp-block-columns {
		flex-wrap: wrap;
	}

	.wp-block-column {
		flex: 1 1 100%;
	}
}

/* Source uses Tailwind's md breakpoint (768px) to switch from stacked to
   side-by-side columns. WP core's own block-library CSS only removes the
   forced stack (flex-wrap + flex-basis:100% !important) at 782px, leaving a
   768-781px gap where columns wrongly stay stacked. Scoped to the paired
   logo-card rows (Projects page) so pages that intentionally stack up to a
   wider breakpoint (contact/news/fairs/services/person/stats grids) are
   unaffected. Force the unstack at the same 768px breakpoint the source
   design uses, matching core's selector specificity + !important so it
   actually wins in that gap. */
@media (min-width: 768px) {
	.wp-block-columns:has(> .dimecc-logo-card) {
		flex-wrap: nowrap !important;
	}

	.wp-block-columns:has(> .dimecc-logo-card):not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex: 1 1 0 !important;
	}
}

::selection {
	background-color: #5ad2f6;
	color: #00388a;
}

h1, h2 {
	letter-spacing: -0.025em;
}

a {
	text-decoration: none;
}

.wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* source stacks the hero buttons full-width below its sm breakpoint
   (flex-col sm:flex-row) — .wp-block-buttons is flex-row at every size here,
   so each button just wraps to its own line at its own content width instead
   of stretching to fill it. */
@media (max-width: 639px) {
	.dimecc-hero .wp-block-buttons {
		flex-direction: column;
	}

	.dimecc-hero .wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.dimecc-hero .wp-block-buttons .wp-block-button .wp-block-button__link {
		justify-content: center;
	}
}

.dimecc-center-buttons {
	justify-content: center;
	display: flex;
	gap: 1rem;
}

.wp-block-button__link {
	border-radius: 0;
	font-weight: 500;
	font-size: 0.875rem;
	padding: 0.75rem 2rem;
	border: 1px solid currentColor;
}

.dimecc-inner {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.dimecc-narrow {
	max-width: 42rem;
}

.dimecc-hero-content {
	max-width: 48rem;
}

.dimecc-center-block {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.dimecc-narrow-center {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.dimecc-section {
	padding-top: 6rem;
	padding-bottom: 6rem;
}

.dimecc-section-tight {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.dimecc-section-surface {
	background-color: #f8fafc;
}

/* ---------- spacing utilities (mirrors the handful of Tailwind margins used in the source) ---------- */

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.dimecc-mt-16 { margin-top: 4rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-16 { gap: 4rem; }

/* About page "company intro" columns use Tailwind's lg breakpoint
   (1024px) to switch from stacked to side-by-side. WP core's block-library
   CSS forces flex-wrap: nowrap !important above 782px, leaving a wide
   782-1023px gap where columns would wrongly sit side-by-side. Force the
   stack back on at the same 1024px breakpoint the source design uses
   (mirrors the fix already applied to .dimecc-news-events-cols). */
@media (max-width: 1023px) {
	.wp-block-columns.dimecc-inner.gap-16 {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.dimecc-inner.gap-16 > .wp-block-column {
		flex: 1 1 100% !important;
	}
}

.dimecc-narrow-md {
	max-width: 48rem;
}

.dimecc-narrow-lg {
	max-width: 64rem;
}

.dimecc-narrow-xl {
	max-width: 72rem;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	.reveal-up {
		animation: none;
	}
}

/* ---------- text weight utilities ---------- */

.font-semibold .wp-block-button__link { font-weight: 600; }
.font-bold .wp-block-button__link { font-weight: 700; }

/* ---------- header ---------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	border-bottom: 1px solid #f1f5f9;
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
}

.site-header-inner {
	max-width: 1280px;
	height: 5rem;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

@media (max-width: 1023px) {
	.site-header-inner {
		justify-content: flex-start;
	}

	.site-header-inner .site-header-nav {
		margin-left: auto;
	}
}

.site-header-inner > .wp-block-buttons {
	display: none;
}

@media (min-width: 768px) {
	.site-header-inner > .wp-block-buttons {
		display: flex;
	}
}

.site-header .wp-block-site-logo img {
	height: 48px;
	width: auto;
}

@media (min-width: 768px) {
	.site-header .wp-block-site-logo img {
		height: 56px;
	}
}

.site-header-nav {
	position: static !important;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.site-header-nav .wp-block-navigation__container {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header-nav a {
	font-size: 0.875rem;
	font-weight: 500;
	color: #475569;
}

.site-header-nav a:hover {
	color: #00388a;
}

/* WP core's navigation block forces color:inherit on the link via
   ".wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content"
   — 3 classes' worth of specificity, specifically so it beats a plain
   single-class theme override — that inherited color falls through to
   body's base ink (#0f172a), not the slate-600 source specifies for inactive
   nav links. Match 4 classes' worth to definitively win regardless of
   stylesheet load order. */
.site-header .site-header-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: #475569;
}

.site-header .site-header-nav .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: #00388a;
}

.site-header .site-header-nav .wp-block-navigation-item__content.wp-block-navigation-item__content.dimecc-nav-current {
	color: #00388a;
	font-weight: 600;
}

/* Source switches between the desktop link row and the mobile hamburger at
   lg (1024px), not WordPress's built-in 600px default — override both the
   toggle button and the inline container to match. */
.site-header-nav .wp-block-navigation__responsive-container-open {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #00388a;
	padding: 0.5rem;
}

/* WP's built-in open-icon is a 2-bar glyph; replace it with a proper 3-line
   hamburger (lucide Menu) via mask so it still tracks currentColor. */
.site-header-nav .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.site-header-nav .wp-block-navigation__responsive-container-open::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='20' y1='12' y2='12'/%3E%3Cline x1='4' x2='20' y1='6' y2='6'/%3E%3Cline x1='4' x2='20' y1='18' y2='18'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='20' y1='12' y2='12'/%3E%3Cline x1='4' x2='20' y1='6' y2='6'/%3E%3Cline x1='4' x2='20' y1='18' y2='18'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

@media (min-width: 1024px) {
	.site-header-nav .wp-block-navigation__responsive-container-open {
		display: none;
	}
}

/* When the menu is open, WP marks <html> with .has-modal-open — use that as
   a pure-CSS hook to swap the hamburger for the close (X) button in the
   exact same header slot, instead of showing both/neither. */
html.has-modal-open .site-header-nav .wp-block-navigation__responsive-container-open {
	display: none !important;
}

@media (max-width: 1023px) {
	.site-header-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}
}

@media (min-width: 600px) and (max-width: 1023px) {
	.site-header-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}

/* The open panel is an inline dropdown right under the header, not a
   full-screen modal — override WP's default fixed/inset:0 overlay. */
.site-header-nav .wp-block-navigation__responsive-container.is-menu-open {
	position: absolute;
	inset: auto;
	top: 100%;
	left: 0;
	right: 0;
	bottom: auto;
	height: auto;
	z-index: 1;
	padding: 0;
	background-color: #ffffff !important;
	border-top: 1px solid #f1f5f9;
	animation: none;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.5rem;
	gap: 1rem;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1rem;
	font-weight: 500;
	color: #334155;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: #00388a;
}

.site-header-nav .wp-block-navigation__responsive-container-close {
	display: none;
	position: fixed;
	top: 1.25rem;
	right: 1.5rem;
	z-index: 51;
	padding: 0.5rem;
	color: #00388a;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.site-header-nav .wp-block-navigation__responsive-container-close {
		right: 10.75rem;
	}
}

@media (max-width: 1023px) {
	html.has-modal-open .site-header-nav .wp-block-navigation__responsive-container-close {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/* the two extra mobile-only items appended to the nav entity */
@media (min-width: 1024px) {
	.dimecc-nav-mobile-only {
		display: none !important;
	}
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .dimecc-nav-mobile-cta .wp-block-navigation-item__content {
	font-weight: 600;
	color: #00388a;
}

.dimecc-nav-mobile-button {
	width: 100%;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .dimecc-nav-mobile-button .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 2.75rem;
	background-color: #5ad2f6;
	color: #00388a;
	font-weight: 700;
}

.site-header-nav .wp-block-navigation__responsive-container.is-menu-open .dimecc-nav-mobile-button .wp-block-navigation-item__content:hover {
	background-color: #4bc1e4;
	color: #00388a;
}

/* ---------- buttons: color variants (scoped, no block "style" JSON needed) ---------- */

.btn-accent .wp-block-button__link {
	background-color: #5ad2f6;
	color: #00388a;
}

.btn-accent .wp-block-button__link:hover {
	background-color: #4bc1e4;
}

.btn-navy .wp-block-button__link {
	background-color: #00388a;
	color: #ffffff;
	/* source Button is h-12 px-8 (48px tall) — padding-only sizing from the
	   base .wp-block-button__link rule renders ~47px, so pin the height
	   explicitly and center via flex like .btn-lg does. */
	height: 3rem;
	display: inline-flex;
	align-items: center;
	padding: 0 2rem;
}

.btn-navy .wp-block-button__link:hover {
	background-color: #002a6a;
}

.btn-outline-white .wp-block-button__link {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white .wp-block-button__link:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-invert .wp-block-button__link {
	background-color: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: background-color 0.2s ease, color 0.2s ease;
	/* source Button is h-12 px-8 (48px tall), see .btn-navy comment above */
	height: 3rem;
	display: inline-flex;
	align-items: center;
	padding: 0 2rem;
}

.btn-outline-invert .wp-block-button__link:hover {
	background-color: #ffffff;
	color: #00388a;
}

.skew-btn .wp-block-button__link {
	transform: skewX(-12deg);
	display: inline-block;
}

.skew-btn .wp-block-button__link span:not(.dimecc-cta-btn-inner) {
	display: inline-block;
	transform: skewX(12deg);
}

.btn-lg .wp-block-button__link {
	height: 56px;
	display: inline-flex;
	align-items: center;
	padding: 0 2rem;
	font-size: 1.125rem;
}

.btn-sm .wp-block-button__link {
	padding: 0.5rem 1.5rem;
	font-size: 0.875rem;
}

/* ---------- hero ---------- */

.dimecc-hero {
	position: relative;
	overflow: hidden;
	background-color: #00388a;
	color: #ffffff;
	padding-top: 8rem;
	padding-bottom: 5rem;
}

@media (min-width: 768px) {
	.dimecc-hero {
		padding-top: 12rem;
		padding-bottom: 8rem;
	}
}

@keyframes dimecc-grid-move {
	0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
	100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); }
}

.dimecc-hero::before,
.dimecc-page-hero::before,
.dimecc-timeline-section::before,
.dimecc-linkedin::before {
	content: "";
	position: absolute;
	top: 0;
	left: -50%;
	width: 200%;
	height: 200%;
	z-index: 0;
	background-image:
		linear-gradient(to right, rgba(90, 210, 246, 0.1) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(90, 210, 246, 0.1) 1px, transparent 1px);
	background-size: 40px 40px;
	animation: dimecc-grid-move 20s linear infinite;
}

.dimecc-hero::before,
.dimecc-page-hero::before {
	opacity: 0.2;
}

.dimecc-timeline-section::before,
.dimecc-linkedin::before {
	opacity: 0.1;
}

@media (prefers-reduced-motion: reduce) {
	.dimecc-hero::before,
	.dimecc-page-hero::before,
	.dimecc-timeline-section::before,
	.dimecc-linkedin::before {
		animation: none;
	}
}

.dimecc-hero > * {
	position: relative;
	z-index: 1;
}

/* editable hero photo (real wp:image block, replaces the old hardcoded
   CSS background-image so it can be swapped from the media library) */
.dimecc-hero-bg-image,
.dimecc-page-hero-bg-image {
	position: absolute !important;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50%;
	z-index: 0 !important;
	opacity: 0.4;
	mix-blend-mode: screen;
	overflow: hidden;
	margin: 0;
}

/* the navy-to-transparent gradient sits INSIDE the same opacity:0.4 +
   mix-blend-mode:screen box as the photo itself (matches source exactly:
   the gradient div is a sibling of the <img>, nested in the same
   opacity/blend wrapper) - it is not a separate full-width overlay. */
.dimecc-hero-bg-image::after,
.dimecc-page-hero-bg-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to right, #00388a, transparent);
}

.dimecc-hero-bg-image img,
.dimecc-page-hero-bg-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left center;
	display: block;
}

.dimecc-hero h1 {
	color: #ffffff;
	line-height: 1.05;
	margin-bottom: 2rem;
	font-size: 3rem;
}

@media (min-width: 768px) {
	.dimecc-hero h1 {
		font-size: 4.5rem;
	}
}

@media (min-width: 1024px) {
	.dimecc-hero h1 {
		font-size: 6rem;
	}
}

.dimecc-hero-lead {
	max-width: 42rem;
	color: #dbeafe;
	line-height: 1.625;
	margin-bottom: 3rem;
}

.dimecc-tint-text,
.dimecc-tint-text a {
	color: #dbeafe;
}

.dimecc-tint-text a:hover {
	color: #5ad2f6;
}

.dimecc-desc-text {
	color: #475569;
	line-height: 1.75rem;
}

.dimecc-hero .dimecc-gradient-text {
	background: linear-gradient(to right, #5ad2f6, #ffffff);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dimecc-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin: 0 0 2rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.9);
}

.dimecc-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #5ad2f6;
	flex-shrink: 0;
	animation: dimecc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* LinkedIn feed section reuses .dimecc-badge from the hero, but source
   specs it at mb-6/font-bold there (hero is mb-8/font-semibold) — scope
   the difference back in. */
.dimecc-linkedin .dimecc-badge {
	margin-bottom: 1.5rem;
	font-weight: 700;
}

/* Source uses a lucide Linkedin icon here, not the generic dot — swap the
   ::before content for the same mask-image icon used sitewide for LinkedIn. */
.dimecc-badge-linkedin::before {
	width: 14px;
	height: 14px;
	border-radius: 0;
	background-color: #5ad2f6;
	animation: none;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E");
}

@keyframes dimecc-pulse {
	50% {
		opacity: 0.5;
	}
}

/* ---------- stats ---------- */

.dimecc-stats-wrap {
	background: #f8fafc;
	padding-bottom: 4rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 768px) {
	.dimecc-stats-wrap {
		padding-bottom: 5rem;
	}
}

.dimecc-stats-card {
	max-width: 1232px;
	margin-left: auto;
	margin-right: auto;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	position: relative;
	z-index: 5;
}

.wp-block-columns.dimecc-stats-card {
	margin-top: -4rem;
}

@media (min-width: 768px) {
	.wp-block-columns.dimecc-stats-card {
		margin-top: -5rem;
	}
}

.dimecc-stats-card .wp-block-columns {
	gap: 0;
}

.wp-block-columns.dimecc-stats-card {
	gap: 0;
}

/* source is grid-cols-2 md:grid-cols-4 — 2 stats per row on mobile, not
   WP core's default 1-per-row mobile stacking. */
@media (max-width: 767px) {
	.wp-block-columns.dimecc-stats-card {
		flex-wrap: wrap;
	}

	.wp-block-columns.dimecc-stats-card > .wp-block-column.dimecc-stat {
		flex-basis: 50% !important;
		width: 50% !important;
	}
}

.dimecc-stat {
	padding: 2rem;
	text-align: center;
	border-left: 1px solid #f1f5f9;
	transition: background-color 0.2s ease;
}

.dimecc-stat:first-child {
	border-left: none;
}

.dimecc-stat:hover {
	background-color: #f8fafc;
}

.dimecc-stat-value {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 2.25rem;
	color: #00388a;
	line-height: 1.25;
	margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
	.dimecc-stat-value {
		font-size: 3rem;
	}
}

.dimecc-stat-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin: 0;
}

/* ---------- services ---------- */

.dimecc-services {
	background-color: #f8fafc;
}

.dimecc-services h2 {
	margin-bottom: 1.5rem;
	font-size: 2.25rem;
}

@media (min-width: 768px) {
	.dimecc-services h2 {
		font-size: 3rem;
	}
}

.dimecc-services-intro {
	margin-bottom: 4rem;
}

.wp-block-columns.dimecc-services-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.wp-block-columns.dimecc-services-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.wp-block-columns.dimecc-services-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.dimecc-service-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dimecc-service-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.dimecc-service-icon {
	width: 3.5rem;
	height: 3.5rem;
	background: #eff6ff;
	color: #00388a;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
	margin-bottom: 1.5rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dimecc-service-card:hover .dimecc-service-icon {
	background: #5ad2f6;
	color: #ffffff;
}

.dimecc-service-icon svg {
	width: auto;
	height: 32px;
	transform: skewX(12deg);
}

.dimecc-service-card h3 {
	margin: 0 0 0.75rem;
}

.dimecc-service-desc {
	color: #475569;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0 0 2rem;
}

.dimecc-service-desc-tight {
	margin-bottom: 0;
}

.dimecc-service-link {
	font-size: 0.875rem;
	font-weight: 700;
}

.dimecc-service-link,
.dimecc-service-link a {
	color: #00388a;
	transition: color 0.2s ease;
}

.dimecc-service-card:hover .dimecc-service-link,
.dimecc-service-card:hover .dimecc-service-link a,
.dimecc-service-link:hover,
.dimecc-service-link a:hover {
	color: #5ad2f6;
}

.dimecc-service-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* Arrow is a real icon, not a character appended to the editable link text —
   default is ArrowUpRight (diagonal); .dimecc-service-link-right overrides
   it to the plain rightward ArrowRight for the one link that needs it. */
.dimecc-service-link a::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

.dimecc-service-link-right a::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* "View all news" / "Full calendar" row-heading links — plain ArrowRight,
   same real-icon approach as .dimecc-service-link. */
.dimecc-view-all-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: #00388a;
	transition: color 0.2s ease;
}

.dimecc-view-all-link a:hover {
	color: #5ad2f6;
}

.dimecc-view-all-link a::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* ---------- flagship programs ---------- */

.dimecc-programs {
	position: relative;
	overflow: hidden;
	background-color: #00388a;
	color: #ffffff;
}

.dimecc-programs::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.2;
	background-image: url('../images/collab-motion.png');
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.dimecc-programs > * {
	position: relative;
	z-index: 1;
}

.dimecc-programs h2 {
	color: #ffffff;
	text-align: center;
	margin-bottom: 3rem;
}

.dimecc-program-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

@media (min-width: 768px) {
	.dimecc-program-grid .wp-block-post-template {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem;
	}
}

.dimecc-program-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 6rem;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(4px);
	text-align: center;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.dimecc-program-tile h3,
.dimecc-program-tile h3 a {
	margin: 0;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.75rem;
	letter-spacing: 0.025em;
	color: rgba(255, 255, 255, 0.8);
	transition: color 0.2s ease;
}

.dimecc-program-tile:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: scale(1.05);
}

.dimecc-program-tile:hover h3,
.dimecc-program-tile:hover h3 a {
	color: #5ad2f6;
}

/* ---------- co-creation process ---------- */

.dimecc-process-section h2 {
	margin-bottom: 4rem;
	font-size: 2.25rem;
}

@media (min-width: 768px) {
	.dimecc-process-section h2 {
		font-size: 3rem;
	}
}

.dimecc-process-wrap {
	position: relative;
}

.dimecc-process-line-grey {
	position: absolute;
	top: 2rem;
	left: 0;
	right: 0;
	height: 2px;
	background: #f1f5f9;
	z-index: 0;
}

.dimecc-process-line-blue {
	position: absolute;
	top: 2rem;
	left: 0;
	width: 50%;
	height: 2px;
	background: #5ad2f6;
	z-index: 0;
}

@media (max-width: 767px) {
	.dimecc-process-line-grey,
	.dimecc-process-line-blue {
		display: none;
	}
}

.dimecc-process {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.dimecc-process {
		grid-template-columns: repeat(4, 1fr);
	}
}

.dimecc-step {
	position: relative;
	z-index: 1;
	background: #ffffff;
}

.dimecc-step-number {
	width: 4rem;
	height: 4rem;
	background: #00388a;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	margin: 0 0 1.5rem;
}

.dimecc-step-number span {
	display: inline-block;
	transform: skewX(12deg);
}

.dimecc-step h3 {
	margin: 0 0 0.75rem;
}

.dimecc-step-desc {
	font-size: 1rem;
	line-height: 1.5;
	color: #475569;
	margin: 0;
}

/* ---------- news & events ---------- */

.dimecc-news-events {
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
}

.dimecc-news-events-cols {
	gap: 4rem;
}

@media (max-width: 1023px) {
	.wp-block-columns.dimecc-news-events-cols {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.dimecc-news-events-cols > .wp-block-column {
		flex: 1 1 100%;
	}
}

.dimecc-row-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
}

.dimecc-row-heading a {
	font-size: 0.875rem;
	font-weight: 600;
	color: #00388a;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.dimecc-row-heading a:hover {
	color: #5ad2f6;
}

.dimecc-featured-news .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dimecc-featured-news img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.dimecc-featured-news .wp-block-post-template > li:hover img {
	transform: scale(1.05);
}

.dimecc-featured-news .wp-block-post-featured-image {
	position: relative;
	overflow: hidden;
	margin: 0 0 1.5rem;
}

.dimecc-featured-news .wp-block-post-featured-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 56, 138, 0.1);
	opacity: 1;
	transition: opacity 0.3s ease;
}

.dimecc-featured-news .wp-block-post-template > li:hover .wp-block-post-featured-image::after {
	opacity: 0;
}

.dimecc-eyebrow-line {
	font-size: 0.875rem;
	font-weight: 600;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.75rem;
}

.dimecc-featured-news-meta {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.dimecc-featured-news-meta time {
	margin: 0;
}

.dimecc-featured-news-category::before {
	content: "\2022";
	margin-right: 0.4em;
}

.dimecc-featured-news-category a {
	color: inherit;
	text-decoration: none;
}

.dimecc-featured-news h3 {
	margin: 0 0 1rem;
	line-height: 1.375;
	transition: color 0.2s ease;
}

/* WP core's post-title block deliberately excludes color from what its inner
   <a> inherits (wp-includes/blocks/post-title/style.min.css), so the anchor
   falls through to the theme's global link color (navy) instead of the
   heading's own ink color — title looks like a plain link at rest instead of
   only turning blue on hover, same failure mode fixed below for the events list. */
.dimecc-featured-news h3 a {
	color: inherit;
}

.dimecc-featured-news .wp-block-post-template > li:hover h3 {
	color: #00388a;
}

.dimecc-featured-news-desc {
	color: #475569;
	margin: 0;
}

.dimecc-event-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dimecc-event-list .wp-block-post-template > li {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 1.5rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dimecc-event-list .wp-block-post-template > li:hover {
	border-color: rgba(90, 210, 246, 0.5);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.dimecc-event-date {
	flex-shrink: 0;
	width: 6rem;
	text-align: center;
	padding: 0.5rem 0;
	margin: 0;
	background: #f8fafc;
	transform: skewX(-8deg);
}

.dimecc-event-date-inner {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #00388a;
	transform: skewX(8deg);
	margin: 0;
}

.dimecc-event-type {
	font-size: 0.75rem;
	font-weight: 700;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.25rem;
}

.dimecc-event-list .wp-block-post-title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.75rem;
	transition: color 0.2s ease;
}

/* Same fix as .dimecc-featured-news h3 a above — the title link otherwise
   always renders in the theme's global link color instead of only on hover. */
.dimecc-event-list .wp-block-post-title a {
	color: inherit;
}

.dimecc-event-list .wp-block-post-template > li:hover .wp-block-post-title {
	color: #00388a;
}

.dimecc-subscribe {
	position: relative;
	overflow: hidden;
	margin-top: 2rem;
	background: #00388a;
	color: #ffffff;
	padding: 2rem;
}

.dimecc-subscribe::before {
	content: "";
	position: absolute;
	right: -3rem;
	top: -3rem;
	width: 10rem;
	height: 10rem;
	background: #5ad2f6;
	opacity: 0.2;
	filter: blur(64px);
	border-radius: 999px;
}

.dimecc-subscribe > * {
	position: relative;
	z-index: 1;
}

.dimecc-subscribe h4 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: #ffffff;
}

.dimecc-subscribe p {
	color: #bfdbfe;
	font-size: 0.875rem;
	margin: 0 0 1.5rem;
}

.dimecc-subscribe-form {
	display: flex;
	gap: 0.5rem;
}

.dimecc-subscribe-form input {
	flex: 1;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 0.5rem 1rem;
	color: #ffffff;
}

.dimecc-subscribe-form input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.dimecc-subscribe-form input:focus {
	outline: none;
	border-color: #5ad2f6;
}

.dimecc-subscribe-form button {
	background: #5ad2f6;
	color: #00388a;
	font-weight: 700;
	font-size: 0.875rem;
	padding: 0.5rem 1.5rem;
	border: none;
	cursor: pointer;
}

.dimecc-subscribe-form button:hover {
	background: #4bc1e4;
}

.dimecc-subscribe-status {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: #bfdbfe;
}

/* ---------- international fairs ---------- */

.dimecc-fairs {
	background: #ffffff;
	border-top: 1px solid #f1f5f9;
}

.dimecc-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	background: #eff6ff;
	border: 1px solid rgba(90, 210, 246, 0.3);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #00388a;
	margin: 0 0 1.5rem;
}

.dimecc-eyebrow:not(.dimecc-eyebrow-dark)::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #5ad2f6;
	flex-shrink: 0;
}

.dimecc-eyebrow-dark {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.9);
}

.dimecc-fairs-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.dimecc-fairs-header-lg {
	margin-bottom: 4rem;
}

/* LinkedIn feed section reuses the same header markup/classes as the
   International Fairs section, but source has it at mb-12 (3rem), not
   mb-16 (4rem) like Fairs — scope back down here. */
.dimecc-linkedin .dimecc-fairs-header-lg {
	margin-bottom: 3rem;
}

.dimecc-fairs-header h2 {
	margin-bottom: 1.5rem;
	font-size: 2.25rem;
}

@media (min-width: 768px) {
	.dimecc-fairs-header h2 {
		font-size: 3rem;
	}
}

.wp-block-columns.dimecc-fairs-grid,
.wp-block-post-template.dimecc-fairs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.wp-block-columns.dimecc-fairs-grid,
	.wp-block-post-template.dimecc-fairs-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.wp-block-columns.dimecc-fairs-grid,
	.wp-block-post-template.dimecc-fairs-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.dimecc-fairs-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #00388a;
	color: #ffffff;
	font-weight: 700;
	padding: 0.75rem 2rem;
	flex-shrink: 0;
	white-space: nowrap;
}

.dimecc-linkedin .dimecc-fairs-cta {
	background: transparent;
	color: #00388a;
	padding: 0;
}

.dimecc-linkedin .dimecc-fairs-cta .wp-block-button__link {
	background: #5ad2f6;
	color: #00388a;
	border: none;
	height: 3rem;
	padding: 0 1.5rem;
	display: inline-flex;
	align-items: center;
	transition: background-color 0.2s ease;
}

.dimecc-linkedin .dimecc-fairs-cta .wp-block-button__link:hover {
	background: #4bc1e4;
}

.dimecc-fair-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.dimecc-fair-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.dimecc-fair-card-link .wp-block-button__link {
	display: block;
	width: 100%;
	height: 100%;
	background: none !important;
	padding: 0 !important;
	border: none !important;
	font-size: 0;
	line-height: 0;
	color: transparent;
	overflow: hidden;
}

.dimecc-fair-card:hover {
	border-color: rgba(90, 210, 246, 0.5);
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.dimecc-fair-date {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem;
}

/* Source uses lucide's plain Calendar icon (no internal day-grid lines) —
   not CalendarDays. Drawn via mask-image since it's a lucide stroke icon. */
.dimecc-fair-date-icon {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
}

.dimecc-fair-date-icon svg {
	width: 100%;
	height: 100%;
}

.dimecc-fair-card h3,
.dimecc-fair-card h3 a {
	margin: 0 0 0.75rem;
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dimecc-fair-card:hover h3,
.dimecc-fair-card:hover h3 a {
	color: #00388a;
}

.dimecc-fair-city {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 1rem;
}

.dimecc-fair-city svg {
	flex-shrink: 0;
	width: auto;
	height: 14px;
}

.dimecc-fair-focus {
	font-size: 0.875rem;
	color: #475569;
	margin: 0 0 1.5rem;
}

.dimecc-fair-role {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.75rem;
	font-weight: 600;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-top: 1px solid #f1f5f9;
	padding-top: 1rem;
	margin: 0;
}

.dimecc-fair-date p,
.dimecc-fair-city p,
.dimecc-fair-role p {
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	font-weight: inherit;
	text-transform: inherit;
	letter-spacing: inherit;
	margin: 0;
}

/* Source uses lucide's plain ArrowUpRight (a diagonal arrow, no box) here —
   not an "external link" icon. Drawn via mask-image since it's a lucide
   stroke-outline icon (font-awesome/icon only supports filled paths). */
.dimecc-fair-role-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: #94a3b8;
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

.dimecc-fair-card:hover .dimecc-fair-role-icon {
	background-color: #5ad2f6;
	transform: translate(2px, -2px);
}

/* The International Fairs page's own card (source: international-fairs.tsx) only
   transitions the icon color on hover, no translate — unlike the Home page's fair
   preview card (source: home.tsx, group-hover:translate-x-0.5 -translate-y-0.5),
   which shares the same .dimecc-fair-card/.dimecc-fair-role markup classes. Scope
   the transform off via the element-type-specific selector (post-template, used
   only by the Fairs archive's Query Loop) so Home's wp:columns grid is unaffected. */
.wp-block-post-template.dimecc-fairs-grid .dimecc-fair-card:hover .dimecc-fair-role-icon {
	transform: none;
}

/* ---------- linkedin feed ---------- */

.dimecc-linkedin {
	position: relative;
	overflow: hidden;
	background-color: #00388a;
	color: #ffffff;
}


.dimecc-linkedin > * {
	position: relative;
	z-index: 1;
}

.dimecc-linkedin h2 {
	color: #ffffff;
}

.dimecc-li-grid.wp-block-rss {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.dimecc-li-grid.wp-block-rss {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.dimecc-li-grid.wp-block-rss {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

.dimecc-li-grid .wp-block-rss__item {
	position: relative;
	background: #ffffff;
	color: #0f172a;
	padding: 1.5rem;
	transition: transform 0.3s ease;
}

.dimecc-li-grid .wp-block-rss__item:hover {
	transform: translateY(-4px);
}

.dimecc-li-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.dimecc-li-avatar {
	width: 3rem;
	height: 3rem;
	flex-shrink: 0;
	background: #00388a;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
}

.dimecc-li-avatar span {
	display: inline-block;
	transform: skewX(12deg);
	color: #ffffff;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
}

.dimecc-li-meta {
	flex: 1;
	min-width: 0;
}

.dimecc-li-name {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 700;
	color: #0f172a;
}

.dimecc-li-sub {
	font-size: 0.75rem;
	line-height: 1rem;
	color: #64748b;
}

.dimecc-li-icon {
	width: 1.25rem;
	height: 1.25rem;
	color: #0a66c2;
	flex-shrink: 0;
	margin-left: auto;
}

.dimecc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	white-space: nowrap;
	clip: rect(0, 0, 0, 0);
}

.dimecc-li-grid .wp-block-rss__item-title {
	display: block;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.dimecc-li-grid .wp-block-rss__item-title a {
	display: block;
	position: relative;
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.625;
	color: #334155;
	text-decoration: none;
}

.dimecc-li-grid .wp-block-rss__item-title a:hover {
	color: #00388a;
}

.dimecc-li-grid .wp-block-rss__item-title a:after {
	content: "Read on LinkedIn";
	display: block;
	margin-top: 1rem;
	padding-top: 1rem;
	padding-right: 1.25rem;
	border-top: 1px solid #f1f5f9;
	font-weight: 700;
	font-size: 0.75rem;
	color: #00388a;
}

/* the arrow is a real icon, not a character baked into the ::after text —
   positioned to sit at the end of the "Read on LinkedIn" row above. */
.dimecc-li-grid .wp-block-rss__item-title a:before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.0625rem;
	width: 14px;
	height: 14px;
	background-color: #00388a;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	transition: background-color 0.2s ease;
}

.dimecc-li-grid .wp-block-rss__item:hover .wp-block-rss__item-title a:before {
	background-color: #5ad2f6;
}

.dimecc-li-grid .wp-block-rss__item:hover .wp-block-rss__item-title a:after {
	color: #5ad2f6;
}

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

.site-footer {
	background: #0f172a;
	color: #94a3b8;
	padding: 4rem 0;
}

.site-footer > * {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: #5ad2f6;
}

.site-footer h5 {
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem;
}

.site-footer .wp-block-columns {
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.25rem;
}

.footer-brand-mark {
	width: 2rem;
	height: 2rem;
	background: #334155;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.25rem;
	margin: 0;
}

.footer-brand-mark span {
	display: inline-block;
	transform: skewX(12deg);
}

.footer-tagline {
	font-size: 0.875rem;
	margin: 0 0 1.5rem;
}

.footer-social {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.footer-social .wp-block-button__link {
	background: none !important;
	color: #94a3b8;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	width: 1.25rem;
	height: 1.25rem;
	display: inline-flex;
	transform: none !important;
	overflow: hidden;
	position: relative;
}

.footer-social .wp-block-button__link svg {
	width: 100%;
	height: 100%;
}

.footer-social .wp-block-button__link:hover {
	color: #ffffff;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid #1e293b;
	font-size: 0.75rem;
}

/* source stacks this row below its md breakpoint (flex-col md:flex-row
   items-center) — items-center on a column flex centers horizontally. */
@media (max-width: 767px) {
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.footer-bottom-links {
		justify-content: center;
	}
}

.footer-bottom-links {
	display: flex;
	gap: 1.5rem;
}

/* ==========================================================================
   Shared secondary-page components (PageHero, CtaBanner, card variants)
   ========================================================================== */

/* ---------- page hero ---------- */

.dimecc-page-hero {
	position: relative;
	overflow: hidden;
	background-color: #00388a;
	color: #ffffff;
	padding-top: 10rem;
	padding-bottom: 6rem;
}

.dimecc-article-hero {
	padding-bottom: 4rem;
}

/* source: news-article.tsx/event-detail.tsx h1 is text-3xl md:text-5xl (30px/48px)
   — smaller than the other page-heroes' text-4xl md:text-6xl sharing .dimecc-page-hero h1. */
.dimecc-page-hero.dimecc-article-hero h1 {
	font-size: 1.875rem;
}

@media (min-width: 768px) {
	.dimecc-page-hero.dimecc-article-hero h1 {
		font-size: 3rem;
	}
}

.dimecc-page-hero > * {
	position: relative;
	z-index: 1;
}

.dimecc-badge-tight {
	margin-bottom: 1.5rem;
}

/* source: event-detail.tsx's event.type label is plain uppercase text in
   #5AD2F6 (no pill/dot) — unlike every other page's .dimecc-badge.dimecc-badge-tight
   combo (white pill+dot from PageHero.tsx), this is .dimecc-badge-tight alone. */
.wp-block-post-terms.dimecc-badge-tight,
.wp-block-post-terms.dimecc-badge-tight a {
	color: #5ad2f6;
	font-weight: 600;
}

.dimecc-page-hero h1 {
	color: #ffffff;
	font-size: 2.25rem;
	line-height: 1.05;
	margin-bottom: 1.5rem;
	max-width: 56rem;
}

.wp-block-heading.has-2-xl-font-size {
	margin-top: 3rem;
	margin-bottom: 1.5rem;
}

.wp-block-heading.has-2-xl-font-size.dimecc-section-heading-first {
	margin-top: 0;
}

@media (min-width: 768px) {
	.dimecc-page-hero h1 {
		font-size: 3.75rem;
	}
}

.dimecc-page-hero-lead {
	max-width: 48rem;
	color: #dbeafe;
	font-size: 1.125rem;
	line-height: 1.625;
}

@media (min-width: 768px) {
	.dimecc-page-hero-lead {
		font-size: 1.25rem;
	}
}

/* ---------- cta banner ---------- */

.dimecc-cta-section {
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.dimecc-cta-inner {
	max-width: 64rem;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.dimecc-cta-box {
	position: relative;
	overflow: hidden;
	background: #00388a;
	color: #ffffff;
	padding: 3rem;
}

@media (min-width: 768px) {
	.dimecc-cta-box {
		padding: 4rem;
	}
}

.dimecc-cta-box::before {
	content: "";
	position: absolute;
	right: -3rem;
	top: -3rem;
	width: 16rem;
	height: 16rem;
	background: #5ad2f6;
	opacity: 0.2;
	filter: blur(64px);
	border-radius: 50%;
	pointer-events: none;
}

.dimecc-cta-box::after {
	content: "";
	position: absolute;
	left: -3rem;
	bottom: -3rem;
	width: 16rem;
	height: 16rem;
	background: #5ad2f6;
	opacity: 0.1;
	filter: blur(64px);
	border-radius: 50%;
	pointer-events: none;
}

.dimecc-cta-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2rem;
}

@media (min-width: 768px) {
	.dimecc-cta-content {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.dimecc-cta-content .wp-block-buttons {
	flex-shrink: 0;
}

.dimecc-cta-content .wp-block-button__link {
	white-space: nowrap;
}

.dimecc-cta-text {
	max-width: 42rem;
}

.dimecc-cta-text h2 {
	color: #ffffff;
	font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
	margin-bottom: 1rem;
}

.dimecc-cta-text p {
	color: #dbeafe;
	font-size: 1.125rem;
	line-height: 1.625;
}

.dimecc-cta-btn-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transform: skewX(12deg);
}

.dimecc-cta-btn-inner svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.wp-block-button__link:hover .dimecc-cta-btn-inner svg {
	transform: translateX(4px);
}

.dimecc-fairs-cta .wp-block-button__link:hover .dimecc-cta-btn-inner svg {
	transform: none;
}

/* ---------- logo cards (ecosystems / programs) ---------- */

.dimecc-project-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* CSS Grid already stretches each <li> to match the tallest row (confirmed:
   grid's default align-items:stretch applies regardless of the <li>'s own
   display type) — but .dimecc-logo-card is a plain block div NESTED inside
   that <li>, not the grid item itself, so it doesn't inherit that stretched
   height and instead sizes to its own content (shorter for NAMA, which has
   no logo image). Unlike wp:columns usages elsewhere, where .dimecc-logo-card
   IS the direct flex item and stretches for free. */
.dimecc-project-grid .wp-block-post-template > li > .dimecc-logo-card {
	height: 100%;
}

/* source: programs.tsx uses "grid md:grid-cols-2" — 2 columns from 768px up,
   no 3-column breakpoint at any width. */
@media (min-width: 768px) {
	.dimecc-project-grid .wp-block-post-template {
		grid-template-columns: 1fr 1fr;
	}
}

.wp-block-columns.dimecc-logo-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.wp-block-columns.dimecc-logo-card-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.dimecc-ecosystem-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dimecc-ecosystem-grid .wp-block-post-template > li > .dimecc-logo-card {
	height: 100%;
}

@media (min-width: 768px) {
	.dimecc-ecosystem-grid .wp-block-post-template {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.dimecc-ecosystem-grid .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.wp-block-columns.dimecc-logo-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.dimecc-logo-card-link-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.dimecc-logo-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.dimecc-logo-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.dimecc-logo-card-flat:hover {
	border-color: rgba(90, 210, 246, 0.5);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transform: none;
}

.dimecc-logo-card-flat h3,
.dimecc-logo-card-flat h3 a {
	color: #0f172a;
	transition: color 0.2s ease;
}

.dimecc-logo-card-flat:hover h3,
.dimecc-logo-card-flat:hover h3 a {
	color: #00388a;
}

.dimecc-logo-card-mark {
	height: 5rem;
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

.dimecc-logo-card-mark img {
	max-height: 4rem;
	max-width: 220px;
	width: auto;
	object-fit: contain;
}

.dimecc-logo-card-mark-sm {
	height: 4rem;
	margin-bottom: 1.25rem;
}

.dimecc-logo-card-mark-sm img {
	max-height: 3rem;
	max-width: 240px;
}

.dimecc-logo-card h3,
.dimecc-logo-card h3 a {
	margin: 0 0 0.75rem;
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.dimecc-logo-card:hover h3,
.dimecc-logo-card:hover h3 a {
	color: #00388a;
}

.dimecc-logo-card-desc {
	color: #475569;
	margin: 0 0 1.5rem;
	flex: 1;
}

.dimecc-logo-card-link {
	font-size: 0.875rem;
	font-weight: 700;
}

.dimecc-logo-card-flat .dimecc-logo-card-link {
	display: flex;
	width: 100%;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.dimecc-logo-card-link,
.dimecc-logo-card-link a {
	color: #00388a;
	transition: color 0.2s ease;
}

.dimecc-logo-card:not(.dimecc-logo-card-flat):hover .dimecc-logo-card-link,
.dimecc-logo-card:not(.dimecc-logo-card-flat):hover .dimecc-logo-card-link a,
.dimecc-logo-card-link:hover,
.dimecc-logo-card-link a:hover {
	color: #5ad2f6;
}

.dimecc-news-read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.dimecc-news-read-more::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

.dimecc-related-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.dimecc-related-card-link::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
}

/* source: programs.tsx's "Get involved" link uses ArrowUpRight (diagonal),
   not the plain ArrowRight used by Events/News' "View details"/"Read more"
   (.dimecc-related-card-link) — kept as a separate class, don't reuse. */
.dimecc-get-involved-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.dimecc-get-involved-link::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

.dimecc-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.dimecc-back-link::before {
	content: "";
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E");
}

.dimecc-logo-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	margin-top: auto;
	border-top: 1px solid #f1f5f9;
}

/* Invisible placeholder used to fill the second slot of a paired-columns row
   when the item count is odd (e.g. Projects' 9 cards = 4 full rows + 1). Must
   carry the same padding/border box model as .dimecc-logo-card so the flex
   row still splits 50/50 - an empty, unstyled .wp-block-column ends up
   ~66px narrower than its bordered/padded sibling because flex-basis:0
   growth is computed before padding/border are added back on, so a
   box with padding+border "steals" that extra space from its plain sibling. */
.dimecc-logo-card-spacer {
	padding: 2rem;
	border: 1px solid transparent;
	visibility: hidden;
}

/* ---------- academies: tracks + cohorts ---------- */

.dimecc-cohorts-heading {
	color: #00388a;
	font-size: 1.875rem;
}

@media (min-width: 768px) {
	.dimecc-cohorts-heading {
		font-size: 2.25rem;
	}
}

.dimecc-cohort-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dimecc-cohort-title a {
	color: inherit;
}

.dimecc-cohort-row:hover .dimecc-cohort-title a {
	color: #00388a;
}

/* source: each cohort row's only link is an icon-only ArrowUpRight (no
   visible text) linking out — text kept for screen readers, hidden visually. */
.dimecc-cohort-outcome-link {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	font-size: 0;
	color: #00388a;
	transition: color 0.2s ease;
}

.dimecc-cohort-outcome-link:hover {
	color: #5ad2f6;
}

.dimecc-cohort-outcome-link::after {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

.dimecc-cohort-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	padding: 1.5rem;
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	transition: border-color 0.3s ease;
}

.dimecc-cohort-row:hover {
	border-color: rgba(90, 210, 246, 0.5);
}

@media (max-width: 768px) {
	.dimecc-cohort-row {
		grid-template-columns: 1fr;
	}
}

.dimecc-cohort-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.5;
	margin: 0 0 0.25rem;
}

.dimecc-cohort-value {
	color: #334155;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

.dimecc-cohort-title {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	color: #0f172a;
	font-size: 1rem;
	line-height: 1.5;
	margin: 0;
}

.dimecc-event-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dimecc-cohort-outcome-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/* ---------- about page ---------- */

.dimecc-prose {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.dimecc-prose p {
	font-size: 1.125rem;
	color: #475569;
	line-height: 1.625;
	margin: 0;
}

.dimecc-timeline-section {
	position: relative;
	overflow: hidden;
	background-color: #00388a;
	color: #ffffff;
}

.dimecc-timeline-section > * {
	position: relative;
	z-index: 1;
}

.dimecc-timeline-section h2 {
	color: #ffffff;
	text-align: center;
	margin-bottom: 4rem;
}

.dimecc-timeline-card {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(4px);
	padding: 2rem;
}

.dimecc-timeline-card .dimecc-timeline-year {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 3rem;
	color: #5ad2f6;
	margin: 0 0 1rem;
}

.dimecc-timeline-card h3 {
	margin: 0 0 0.75rem;
	color: #ffffff;
}

.dimecc-timeline-card p {
	color: #dbeafe;
	margin: 0;
}

.dimecc-vision-card {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	padding: 2.5rem;
}

.dimecc-plain-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem;
}

.dimecc-values-heading {
	font-size: 1.5rem;
}

.dimecc-fixed-h2 {
	font-size: 2.25rem;
}

.dimecc-border-y {
	border-top: 1px solid #f1f5f9;
	border-bottom: 1px solid #f1f5f9;
}

.dimecc-border-t {
	border-top: 1px solid #f1f5f9;
}

.wp-block-columns.dimecc-person-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.wp-block-columns.dimecc-person-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.wp-block-columns.dimecc-person-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.dimecc-vision-quote {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.5rem;
	color: #0f172a;
	line-height: 1.375;
	margin: 0;
}

@media (min-width: 768px) {
	.dimecc-vision-quote {
		font-size: 1.875rem;
	}
}

.dimecc-promise-card {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
}

.dimecc-promise-number {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	background: #00388a;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
}

.dimecc-promise-number span {
	display: inline-block;
	transform: skewX(12deg);
}

.dimecc-promise-text {
	font-size: 1.125rem;
	color: #334155;
	line-height: 1.625;
	margin: 0;
}

.dimecc-section-label {
	font-size: 1.125rem;
	color: #475569;
	margin-top: 0;
	margin-bottom: 4rem;
}

.dimecc-subsection-heading {
	font-size: 1.25rem;
	color: #0f172a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1.5rem;
}

.dimecc-person-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 1.5rem;
}

.dimecc-person-avatar {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	background: #00388a;
	color: #ffffff;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	font-size: 1.125rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: skewX(-12deg);
}

.dimecc-person-avatar span {
	display: inline-block;
	transform: skewX(12deg);
}

.dimecc-person-avatar-alt {
	background: #5ad2f6;
	color: #00388a;
}

.dimecc-person-name {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.dimecc-person-role {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0;
}

.dimecc-person-org {
	font-size: 0.75rem;
	font-weight: 600;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0.125rem 0 0;
}

/* ---------- contact page ---------- */

.dimecc-contact-form {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.dimecc-contact-form {
		padding: 3rem;
	}
}

.dimecc-form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.dimecc-form-row {
		grid-template-columns: 1fr 1fr;
	}
}

.dimecc-form-field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.5rem;
}

.dimecc-form-field .required {
	color: #ef4444;
}

.dimecc-form-field input,
.dimecc-form-field select,
.dimecc-form-field textarea {
	width: 100%;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 0.75rem 1rem;
	color: #0f172a;
	font-family: inherit;
	font-size: 1rem;
}

.dimecc-form-field input:focus,
.dimecc-form-field select:focus,
.dimecc-form-field textarea:focus {
	outline: none;
	border-color: #5ad2f6;
}

/* ---------- Gravity Forms: contact form ---------- */

.dimecc-col-2of3 .gform_wrapper {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	margin: 0;
}

@media (min-width: 768px) {
	.dimecc-col-2of3 .gform_wrapper {
		padding: 3rem;
	}
}

.dimecc-col-2of3 .gform_fields {
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dimecc-col-2of3 .gfield_label {
	display: block !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	color: #00388a !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	margin: 0 0 0.5rem !important;
}

.dimecc-col-2of3 .gform_required_legend {
	display: none !important;
}

.dimecc-col-2of3 .gfield_required {
	color: #ef4444 !important;
	margin-left: 0.125rem !important;
}

.dimecc-col-2of3 .gfield_label {
	display: inline-flex !important;
	align-items: baseline;
}

.dimecc-col-2of3 .ginput_container input,
.dimecc-col-2of3 .ginput_container select,
.dimecc-col-2of3 .ginput_container textarea {
	width: 100% !important;
	background: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
	padding: 0.75rem 1rem !important;
	color: #0f172a !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
}

.dimecc-col-2of3 .ginput_container textarea {
	height: 109px !important;
}

.dimecc-col-2of3 .ginput_container select {
	height: auto !important;
	padding-right: 2.5rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300388a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.875rem center !important;
	background-size: 16px !important;
}

.dimecc-col-2of3 .ginput_container input:focus,
.dimecc-col-2of3 .ginput_container select:focus,
.dimecc-col-2of3 .ginput_container textarea:focus {
	outline: none;
	border-color: #5ad2f6 !important;
	box-shadow: none !important;
}

.dimecc-col-2of3 .gform_footer {
	margin: 1.5rem 0 0 !important;
	margin-block-start: 1.5rem !important;
	padding: 0 !important;
}

.dimecc-col-2of3 .gform_button {
	background: #5ad2f6 !important;
	color: #00388a !important;
	font-weight: 700 !important;
	font-size: 1.125rem !important;
	height: 3.5rem !important;
	border: 1px solid currentColor !important;
	border-radius: 0 !important;
	padding: 0 2rem !important;
	box-shadow: none !important;
	transform: skewX(-12deg);
	display: inline-flex !important;
	align-items: center;
	gap: 0.5rem;
}

.dimecc-col-2of3 .gform_button::after {
	content: "" !important;
	display: inline-block !important;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	background-color: #00388a !important;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: transform 0.2s ease;
}

.dimecc-col-2of3 .gform_button:hover::after {
	transform: translateX(2px);
}

.dimecc-col-2of3 .gform_button:hover {
	background: #4bc1e4 !important;
	color: #00388a !important;
}

.dimecc-col-2of3 .gform_validation_errors,
.dimecc-col-2of3 .gfield_validation_message {
	color: #ef4444;
}

/* ---------- Gravity Forms: newsletter subscribe form ---------- */

.dimecc-subscribe .gform_wrapper {
	margin: 0;
}

.dimecc-subscribe .gform_fields {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dimecc-subscribe form {
	display: flex;
	gap: 0.5rem;
	align-items: flex-end;
}

/* Gravity Forms' "orbital" theme markup wraps .gform_fields in an extra
   .gform_body div — that div, not .gform_fields, is form's actual flex
   child, so it (not .gform_fields) needs flex:1 for the input to grow and
   fill the row next to the button, matching source's flex-1 input. */
.dimecc-subscribe .gform_body {
	flex: 1;
}

.dimecc-subscribe .gform_fields,
.dimecc-subscribe .gfield {
	flex: 1;
	margin: 0;
}

.dimecc-subscribe .gform_footer {
	margin: 0 !important;
	margin-block-start: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
}

.dimecc-subscribe .gfield_label {
	display: none !important;
}

.dimecc-subscribe .ginput_container input {
	width: 100% !important;
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 0 !important;
	padding: 0.5rem 1rem !important;
	color: #ffffff !important;
	box-shadow: none !important;
}

.dimecc-subscribe .ginput_container input::placeholder {
	color: rgba(255, 255, 255, 0.5) !important;
}

.dimecc-subscribe .ginput_container input:focus {
	outline: none;
	border-color: #5ad2f6 !important;
	box-shadow: none !important;
}

.dimecc-subscribe .gform_button {
	display: block !important;
	background: #5ad2f6 !important;
	color: #00388a !important;
	font-weight: 700 !important;
	font-size: 0.875rem !important;
	padding: 0.5rem 1.5rem !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	width: auto !important;
	margin: 0 !important;
}

.dimecc-subscribe .gform_button:hover {
	background: #4bc1e4 !important;
}

/* Text and icon are pure white (max possible contrast against the navy
   background, 21:1 — immune to any anti-aliasing-related contrast loss on
   small glyphs like the exclamation icon). Only the border/outline stay a
   light red, purely as a color-accent indicator of "this is an error" —
   borders are solid-filled shapes, not thin text/icon strokes, so they don't
   have the same edge-anti-aliasing contrast problem. */
.dimecc-subscribe .validation_error,
.dimecc-subscribe .gfield_validation_message {
	color: #ffffff !important;
	font-size: 0.75rem;
}

.dimecc-subscribe .gform_validation_error_link {
	color: #ffffff !important;
	text-decoration-color: #ffffff !important;
}

.dimecc-subscribe .gform_validation_errors {
	border-color: #fecaca !important;
}

/* GF's own theme.min.css sets a :focus outline in the original harsh red
   (#c02b0a) on the validation-errors banner and its links — a separate
   property from border/color, never covered by the overrides above. GF
   auto-focuses this banner after a failed submit, so it's visible by default,
   not just on manual keyboard focus. */
.dimecc-subscribe .gform_validation_errors:focus,
.dimecc-subscribe .gform_validation_errors > ol a:focus {
	outline-color: #fecaca !important;
}

.dimecc-subscribe .gform_validation_errors li,
.dimecc-subscribe .gform_validation_errors li::marker {
	color: #ffffff !important;
}

.dimecc-subscribe .gform-icon--circle-error {
	color: #ffffff !important;
	background-color: #991b1b !important;
	font-size: 1.375rem !important;
}

.dimecc-subscribe .gform_submission_error {
	color: #ffffff !important;
}

.dimecc-contact-status {
	font-size: 0.875rem;
	color: #00388a;
	margin: 0;
}

.dimecc-contact-aside {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.dimecc-contact-card {
	position: relative;
	overflow: hidden;
	background: #00388a;
	color: #ffffff;
	padding: 2rem;
}

.dimecc-contact-card::before {
	content: "";
	position: absolute;
	right: -3rem;
	top: -3rem;
	width: 10rem;
	height: 10rem;
	background: #5ad2f6;
	opacity: 0.2;
	filter: blur(64px);
	border-radius: 50%;
	pointer-events: none;
}

.dimecc-contact-card h3 {
	color: #ffffff;
	margin: 0 0 1rem;
	position: relative;
	z-index: 1;
}

.dimecc-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
	color: #dbeafe;
	position: relative;
	z-index: 1;
}

.dimecc-contact-list p {
	font-size: 0.875rem;
	margin: 0;
}

.dimecc-contact-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.dimecc-contact-list li.dimecc-contact-list-item-top {
	align-items: flex-start;
}

.dimecc-contact-list svg {
	flex-shrink: 0;
	width: auto;
	height: 16px;
	margin-top: 0.125rem;
}

/* matches the exact lucide "Linkedin" icon used sitewide (same path as the
   footer's social icons) - the font-awesome/icon block only supports filled
   paths, but this is a stroke-drawn outline icon in source, so it's drawn
   via mask-image instead of a font-awesome/icon block for a true match. */
.dimecc-contact-linkedin-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 0.125rem;
}

.dimecc-contact-linkedin-icon svg {
	width: 100%;
	height: 100%;
}

.dimecc-contact-list a,
.dimecc-contact-list-item-top p {
	color: #dbeafe;
}

.dimecc-contact-list a:hover {
	color: #5ad2f6;
}

.dimecc-press-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
}

.dimecc-press-card h4 {
	color: #00388a;
	margin: 0 0 0.75rem;
}

.dimecc-press-card p {
	font-size: 0.875rem;
	color: #475569;
	margin: 0 0 1rem;
}

.dimecc-press-card .dimecc-logo-card-link {
	font-size: 0.875rem;
}

@media (min-width: 1024px) {
	.wp-block-columns.dimecc-contact-cols > .wp-block-column.dimecc-col-2of3 {
		flex: 2 1 0;
	}

	.wp-block-columns.dimecc-contact-cols > .wp-block-column.dimecc-col-1of3 {
		flex: 1 1 0;
	}
}

@media (max-width: 1023px) {
	.wp-block-columns.dimecc-contact-cols {
		flex-wrap: wrap !important;
	}

	.wp-block-columns.dimecc-contact-cols > .wp-block-column {
		flex: 1 1 100%;
	}
}

/* ---------- single event / news article ---------- */

.dimecc-event-info-box {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 1rem;
}

.dimecc-event-info-icon {
	flex-shrink: 0;
}

.dimecc-event-info-icon svg {
	width: 20px;
	height: 20px;
	color: #5ad2f6;
}

.dimecc-event-info-label {
	color: #bfdbfe;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

.dimecc-event-info-value {
	color: #ffffff;
	font-weight: 600;
	line-height: 1.375;
	margin: 0;
}

.dimecc-event-info-value-sub {
	color: #bfdbfe;
	font-size: 0.875rem;
	margin: 0;
}

.dimecc-event-image {
	margin-top: 0;
}

.dimecc-event-image img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	background: #f1f5f9;
}

.dimecc-event-lead {
	font-size: 1.25rem;
	font-weight: 500;
	color: #334155;
	line-height: 1.625;
}

.dimecc-back-row {
	padding-top: 2rem;
	border-top: 1px solid #f1f5f9;
}

/* ---------- single event body: content + sidebar ---------- */

.dimecc-event-body-cols {
	gap: 3rem !important;
}

@media (max-width: 1023px) {
	.dimecc-event-body-cols {
		flex-wrap: wrap !important;
	}

	.dimecc-event-body-cols > .wp-block-column {
		flex-basis: 100% !important;
	}
}

.dimecc-event-sidebar {
	background: #f8fafc;
	border: 1px solid #f1f5f9;
	padding: 1.5rem;
	position: sticky;
	top: 7rem;
}

.dimecc-event-sidebar h3 {
	color: #0f172a;
	margin: 0 0 1rem;
}

.dimecc-event-highlights {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dimecc-event-highlights li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
}

.dimecc-event-highlights li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.125rem;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: #5ad2f6;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.dimecc-event-sidebar .wp-block-buttons,
.dimecc-event-register-link {
	width: 100%;
}

.dimecc-event-register-link .wp-block-button__link {
	height: 48px;
	width: 100%;
	justify-content: center;
	padding: 0 1.5rem;
}

/* ---------- related content grid (More events / More stories) ---------- */

.dimecc-related-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* same reasoning as .dimecc-project-grid above — .dimecc-related-card is a
   plain block div nested inside the grid's <li>, not the grid item itself. */
.dimecc-related-grid .wp-block-post-template > li > .dimecc-related-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

@media (max-width: 1023px) {
	.dimecc-related-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.dimecc-related-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

.dimecc-related-card {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dimecc-related-card:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.dimecc-related-card-image {
	margin: 0;
	overflow: hidden;
	flex-shrink: 0;
}

.dimecc-related-card-image img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	background: #f1f5f9;
	transition: transform 0.5s ease;
}

.dimecc-related-card:hover .dimecc-related-card-image img {
	transform: scale(1.05);
}

.dimecc-related-card-body {
	padding: 1.5rem;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.dimecc-related-card-body .dimecc-get-involved-link,
.dimecc-related-card-body .dimecc-related-card-link {
	margin-top: auto;
}

.dimecc-project-logo {
	margin: 0;
	display: flex;
	align-items: center;
	min-height: 4rem;
}

.dimecc-project-logo img {
	max-height: 4rem;
	max-width: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dimecc-related-card-logo {
	margin: 0;
	padding: 1.5rem 1.5rem 0;
	display: flex;
	align-items: center;
	min-height: 4.5rem;
}

.dimecc-related-card-logo img {
	max-height: 3rem;
	max-width: 200px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dimecc-related-card-body h3,
.dimecc-related-card-body h3 a {
	margin: 0 0 0.75rem;
	color: #0f172a;
	transition: color 0.2s ease;
}

.dimecc-related-card:hover .dimecc-related-card-body h3,
.dimecc-related-card:hover .dimecc-related-card-body h3 a {
	color: #00388a;
}

.dimecc-related-card:hover .dimecc-logo-card-link,
.dimecc-related-card:hover .dimecc-logo-card-link a {
	color: #5ad2f6;
}

.dimecc-related-card-date {
	color: #00388a;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem;
}

.dimecc-related-event-city {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	color: #64748b;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.dimecc-related-event-city-icon svg {
	width: 14px;
	height: 14px;
	color: #64748b;
	flex-shrink: 0;
}

.dimecc-related-event-city p {
	margin: 0;
}

/* ---------- events archive ---------- */

.dimecc-event-archive-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.dimecc-event-archive-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	padding: 2rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dimecc-event-archive-row:hover {
	border-color: rgba(90, 210, 246, 0.5);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
	.dimecc-event-archive-row {
		grid-template-columns: 7fr 3fr 2fr;
		align-items: center;
	}
}

.dimecc-event-archive-main {
	min-width: 0;
}

.dimecc-event-archive-type {
	color: #00388a;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 0.5rem;
}

.dimecc-event-archive-main h3 {
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
	transition: color 0.2s ease;
}

.dimecc-event-archive-main .wp-block-post-excerpt__excerpt {
	font-size: 1rem;
}

.dimecc-event-archive-row:hover .dimecc-event-archive-main h3 {
	color: #00388a;
}

.dimecc-event-archive-meta {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	border-left: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
	.dimecc-event-archive-meta {
		padding-left: 1.5rem;
	}
}

.dimecc-event-archive-meta-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* the venue row can wrap to 2 lines (venue + city on separate lines) — align
   the icon to the top of that stack, matching source's items-start + mt-0.5,
   instead of vertically centering it across both lines. */
.dimecc-event-archive-meta-row-venue {
	align-items: flex-start;
}

.dimecc-event-archive-meta-row-venue .dimecc-event-icon {
	margin-top: 0.125rem;
}

.dimecc-event-archive-meta-row svg {
	flex-shrink: 0;
	width: auto;
	height: 16px;
	color: #5ad2f6;
}

.dimecc-event-archive-date {
	font-weight: 600;
	color: #334155;
	margin: 0;
}

.dimecc-event-archive-time {
	color: #475569;
	margin: 0;
}

.dimecc-event-archive-venue {
	color: #475569;
	margin: 0;
}

.dimecc-event-archive-city {
	color: #64748b;
	margin: 0;
}

.dimecc-event-archive-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	white-space: nowrap;
}

.dimecc-event-archive-link::after {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
	.dimecc-event-archive-link {
		justify-self: end;
	}
}

.dimecc-event-archive-row:hover .dimecc-event-archive-link,
.dimecc-event-archive-row:hover .dimecc-event-archive-link a {
	color: #5ad2f6;
}

.dimecc-event-archive-footnote {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: #64748b;
}

.dimecc-event-archive-footnote svg {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: #64748b;
}

.dimecc-event-archive-footnote-text {
	margin: 0;
	color: #64748b;
}

/* ---------- news listing ---------- */

/* WP core forces .wp-block-columns{align-items:normal!important} — beats a
   plain-specificity override regardless of source order, so this needs its
   own !important + compound selector to actually center the row's cross
   axis (source: items-center on the "grid lg:grid-cols-5" row). */
.wp-block-columns.dimecc-news-featured-row {
	align-items: center !important;
	gap: 2.5rem;
}

/* source stacks the featured row below lg (1024px) via a bare "grid" (no
   column definition until lg:grid-cols-5); WP core forces nowrap above
   782px, so without this the row stays side-by-side from 782-1023px. */
@media (max-width: 1023px) {
	.wp-block-columns.dimecc-news-featured-row {
		flex-wrap: wrap !important;
	}

	/* must match (or exceed) the specificity of the flex:3/flex:2 rules
	   below, or those unconditional rules keep winning underneath 1024px
	   despite living inside this media query. */
	.wp-block-columns.dimecc-news-featured-row > .wp-block-column.dimecc-news-featured-image,
	.wp-block-columns.dimecc-news-featured-row > .wp-block-column.dimecc-news-featured-text {
		flex: 1 1 100% !important;
	}
}

/* source ratio is lg:col-span-3 / lg:col-span-2 of 5 (60/40, only applies
   from lg=1024px up — see the max-width:1023px override above for the
   stacked layout below that). WP core's
   .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column
   selector has higher specificity (0,3,0) than a single class, so the
   flex shorthand needs a compound selector to actually win. */
@media (min-width: 1024px) {
	.wp-block-columns.dimecc-news-featured-row > .wp-block-column.dimecc-news-featured-image {
		flex: 3 !important;
	}

	.wp-block-columns.dimecc-news-featured-row > .wp-block-column.dimecc-news-featured-text {
		flex: 2 !important;
	}
}

.dimecc-news-featured-image img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	object-position: center;
	background: #f1f5f9;
	transition: transform 0.5s ease;
}

.dimecc-news-featured-image {
	overflow: hidden;
}

.dimecc-news-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #00388a;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
}

.dimecc-news-meta p {
	margin: 0;
}

/* source: news-article.tsx's own hero date+dot+category is text-[#5AD2F6]
   (cyan) — a different color than the "more stories" card's navy meta row,
   even though both reuse the same .dimecc-news-meta class. */
.dimecc-page-hero .dimecc-news-meta {
	color: #5ad2f6;
}

/* source: text-3xl md:text-4xl (30px base, 36px from md=768) — the block's
   fontSize:"4xl" attribute generates has-4-xl-font-size, which carries
   !important and pins the size at 36px on every breakpoint, so the
   responsive base size has to be enforced here instead. */
.dimecc-news-featured-text h2 {
	margin: 0 0 1rem;
	color: #0f172a;
	font-size: 1.875rem !important;
	line-height: 1.375;
	transition: color 0.2s ease;
}

@media (min-width: 768px) {
	.dimecc-news-featured-text h2 {
		font-size: 2.25rem !important;
	}
}

.dimecc-news-featured-row:hover .dimecc-news-featured-text h2 {
	color: #00388a;
}

.dimecc-news-featured-row:hover .dimecc-news-featured-image img {
	transform: scale(1.05);
}

.dimecc-news-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Tailwind breakpoints: base = grid-cols-1 (<768), md:grid-cols-2
   (768-1023), lg:grid-cols-3 (>=1024). */
@media (max-width: 1023px) {
	.dimecc-news-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.dimecc-news-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

.dimecc-news-card-image {
	overflow: hidden;
}

.dimecc-news-card-image img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	background: #f1f5f9;
	margin-bottom: 1.25rem;
	transition: transform 0.5s ease;
}

.dimecc-news-card:hover .dimecc-news-card-image img {
	transform: scale(1.05);
}

.dimecc-news-card h3 {
	margin: 0 0 0.75rem;
	transition: color 0.2s ease;
}

.dimecc-news-card:hover h3 {
	color: #00388a;
}

.dimecc-news-featured-row:hover .dimecc-logo-card-link,
.dimecc-news-featured-row:hover .dimecc-logo-card-link a,
.dimecc-news-card:hover .dimecc-logo-card-link,
.dimecc-news-card:hover .dimecc-logo-card-link a {
	color: #5ad2f6;
}

/* ---------- owners grid ---------- */

.dimecc-owner-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 640px) {
	.dimecc-owner-grid .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.dimecc-owner-grid .wp-block-post-template {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
	}
}

.dimecc-owner-wrap {
	display: flex;
	flex-direction: column;
}

.dimecc-owner-grid-peek {
	order: 1;
	position: relative;
	max-height: 17rem;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.dimecc-owner-grid-peek {
		max-height: 18rem;
	}
}

.dimecc-owner-toggle[open] ~ .dimecc-owner-grid-peek {
	max-height: none;
	overflow: visible;
}

.dimecc-owner-grid-peek::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4rem;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
	pointer-events: none;
}

.dimecc-owner-toggle[open] ~ .dimecc-owner-grid-peek::after {
	display: none;
}

.dimecc-owner-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 6.5rem;
	padding: 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	background: #ffffff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dimecc-owner-card:hover {
	border-color: #5ad2f6;
	box-shadow: 0 8px 16px -8px rgba(0, 56, 138, 0.15);
}

.dimecc-owner-card img {
	max-width: 100%;
	height: 3rem;
	width: auto;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.dimecc-owner-card:hover img {
	filter: grayscale(0);
	opacity: 1;
}

.dimecc-owner-card-link {
	position: absolute;
	inset: 0;
}

.dimecc-owner-card-link .wp-block-button__link {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	background: transparent;
	border: 0;
	font-size: 0;
}

.dimecc-owner-toggle {
	order: 2;
	text-align: center;
}

.dimecc-owner-wrap > details.dimecc-owner-toggle {
	margin-top: 1.5rem;
}

.dimecc-owner-toggle summary {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	font-weight: 600;
	color: #00388a;
	list-style: none;
	transition: color 0.2s ease;
}

.dimecc-owner-toggle summary::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.dimecc-owner-toggle summary:hover {
	color: #5ad2f6;
}

.dimecc-owner-toggle summary::-webkit-details-marker {
	display: none;
}

.dimecc-owner-toggle[open] summary {
	display: none;
}

.dimecc-owner-intro {
	margin-bottom: 1.5rem;
}

