/* Articles archive: topic filter chips above the grid. */
.embedonix-archive-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}

.embedonix-archive-chips__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	font-size: 13.5px;
	text-decoration: none;
	color: inherit;
}

.embedonix-archive-chips__chip--active {
	border-color: #2f7d6b;
	background: rgba(47, 125, 107, 0.1);
	font-weight: 600;
}

.embedonix-archive-chips__count {
	color: #5f7285; /* verified >= 4.5:1 against white, not opacity-dimmed text */
	font-size: 12px;
}

/* Articles archive: truthful content-type label badge on a card excerpt. */
.embedonix-content-label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 9px;
	border-radius: 4px;
	background: rgba(47, 125, 107, 0.12);
	color: #205a4d;
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Articles archive: shorten excerpts on narrow mobile so the grid scans faster. */
@media (max-width: 689px) {
	body.embedonix-enhancement-articles-archive .entry-excerpt {
		display: -webkit-box;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}
}

/* Discovery footer: rendered just before the theme's own footer, on every page. */
.embedonix-discovery-footer {
	padding: 40px 24px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.embedonix-discovery-footer__grid {
	display: flex;
	flex-wrap: wrap;
	/* Equal-width grid tracks looked uneven: a short column (e.g. Site's
	   five one-word links) doesn't fill its track, leaving visual dead
	   space before the next column even though the tracks themselves were
	   mathematically even. Content-sized flex columns plus space-between
	   gives genuinely equal gaps between columns regardless of how much
	   each one's text needs. */
	justify-content: space-between;
	gap: 28px 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.embedonix-discovery-footer__column {
	flex: 0 1 auto;
	max-width: 300px;
	min-width: 140px;
}

.embedonix-discovery-footer__heading {
	margin: 0 0 10px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #5f7285; /* verified >= 4.5:1 against white, not opacity-dimmed text */
}

.embedonix-discovery-footer__column ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 14.5px;
	line-height: 1.45;
}

.embedonix-discovery-footer__column li {
	margin-bottom: 10px;
}

.embedonix-discovery-footer__column li:last-child {
	margin-bottom: 0;
}

.embedonix-discovery-footer__search {
	max-width: 360px;
	margin-top: 28px;
	margin-right: auto;
	margin-left: auto;
}

.embedonix-discovery-footer__search input[type="search"] {
	width: 100%;
}

/* Homepage "start here" row, between the hero and Featured Articles. */
.embedonix-start-here {
	max-width: 1180px;
	margin: 0 auto 26px;
	padding: 0 24px;
}

.embedonix-start-here__heading {
	margin: 0 0 12px;
	font-size: 1.2rem;
}

/* Reduce prominent header social icons on mobile, before content discovery.
   Header icons + a footer "Elsewhere" column with the same links is a
   normal, deliberate pattern (quick access while browsing vs. an
   end-of-page reference) rather than a bug, so this only targets the
   audited problem: icons crowding the mobile first screen. Visual-only;
   does not change the Blocksy Customizer configuration. */
@media (max-width: 600px) {
	body.embedonix-header-social-compact .ct-header-socials {
		transform: scale(0.82);
		transform-origin: right center;
		opacity: 0.85;
	}
}

/* 404 recovery layout. */
.embedonix-404 {
	padding: 60px 24px;
}

.embedonix-404__inner {
	max-width: 720px;
	margin: 0 auto;
}

.embedonix-404__title {
	margin-top: 0;
}

.embedonix-404__lead {
	font-size: 17px;
	opacity: 0.85;
}

.embedonix-404__heading {
	margin-top: 2em;
	font-size: 19px;
}

.embedonix-404__list {
	margin: 0;
	padding-left: 20px;
	line-height: 1.8;
}

.embedonix-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 2.5em;
}
