/**
 * Enel Health — Community Management public styles.
 * Reuses the JoinEnel public palette (--eh-pub-*) with an eh-cm__ namespace.
 */

.eh-cm__hero {
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
	text-align: center;
}

.eh-cm__hero--narrow {
	max-width: 720px;
}

.eh-cm__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--eh-pub-accent, #5ec5c5);
	margin: 0 0 0.75rem;
}

.eh-cm__hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.05;
	margin: 0 0 1rem;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__hero-lead {
	font-size: clamp(1rem, 2vw, 1.15rem);
	line-height: 1.6;
	color: var(--eh-pub-muted, #5c6b69);
	max-width: 720px;
	margin: 0 auto 1.5rem;
}

.eh-cm__hero-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* Buttons */
.eh-cm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.3rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.eh-cm__btn--sm {
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
}

.eh-cm__btn--primary {
	background: var(--eh-pub-ink, #0a1f1e);
	color: #fff;
}

.eh-cm__btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -12px rgba(10, 31, 30, 0.5);
}

.eh-cm__btn--ghost {
	background: transparent;
	color: var(--eh-pub-ink, #0a1f1e);
	border-color: var(--eh-pub-border, #e2e8e0);
}

.eh-cm__btn--ghost:hover {
	border-color: var(--eh-pub-accent, #5ec5c5);
}

.eh-cm__btn:disabled {
	opacity: 0.55;
	cursor: progress;
}

/* Directory */
.eh-cm__directory {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}

.eh-cm__filters {
	display: flex;
	gap: 0.6rem;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 1.75rem;
	padding: 0.75rem;
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 16px;
}

.eh-cm__filter-input,
.eh-cm__filter-select {
	flex: 1 1 180px;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 10px;
	font: inherit;
	background: #fff;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__filter-input--sm {
	flex: 0 1 160px;
}

.eh-cm__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.eh-cm__card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 18px;
	padding: 1.4rem;
	box-shadow: 0 18px 40px -30px rgba(8, 19, 40, 0.35);
}

.eh-cm__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.eh-cm__badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
	background: rgba(94, 197, 197, 0.16);
	color: #1f6f6f;
}

.eh-cm__card-stats {
	display: flex;
	gap: 0.75rem;
	font-size: 0.78rem;
	color: var(--eh-pub-muted, #5c6b69);
}

.eh-cm__card-title {
	font-size: 1.2rem;
	margin: 0;
	line-height: 1.25;
}

.eh-cm__card-title a {
	color: var(--eh-pub-ink, #0a1f1e);
	text-decoration: none;
}

.eh-cm__card-title a:hover {
	color: var(--eh-pub-accent, #5ec5c5);
}

.eh-cm__card-desc {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--eh-pub-muted, #5c6b69);
	margin: 0;
	flex: 1;
}

.eh-cm__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.eh-cm__tag {
	font-size: 0.72rem;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	background: var(--eh-pub-bg, #f9f8f4);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	color: var(--eh-pub-muted, #5c6b69);
}

.eh-cm__card-foot {
	margin-top: 0.25rem;
}

.eh-cm__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--eh-pub-muted, #5c6b69);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}

.eh-cm__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.eh-cm__pager-label {
	font-size: 0.85rem;
	color: var(--eh-pub-muted, #5c6b69);
}

.eh-cm__disclaimer {
	margin-top: 2.5rem;
	font-size: 0.82rem;
	color: var(--eh-pub-muted, #5c6b69);
	text-align: center;
	max-width: 760px;
	margin-inline: auto;
}

/* Detail */
.eh-cm__notice {
	max-width: 1180px;
	margin: 1rem auto 0;
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #fff7e6;
	border: 1px solid #f0d9a8;
	color: #7a5a14;
	font-size: 0.9rem;
}

.eh-cm__detail-hero {
	background: linear-gradient(180deg, #062120, #0c3a37);
	color: #fff;
	background-size: cover;
	background-position: center;
}

.eh-cm__detail-hero-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
}

.eh-cm__detail-hero .eh-cm__badge {
	background: rgba(255, 255, 255, 0.16);
	color: #d6f5f3;
}

.eh-cm__detail-title {
	font-size: clamp(1.8rem, 4.5vw, 2.8rem);
	margin: 0.75rem 0 0.5rem;
	line-height: 1.05;
}

.eh-cm__detail-headline {
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	color: #c6e9e7;
	margin: 0 0 1rem;
	max-width: 640px;
}

.eh-cm__detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-size: 0.9rem;
	color: #b9d8d6;
	margin: 0 0 1.5rem;
}

.eh-cm__detail-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.eh-cm__detail-hero .eh-cm__btn--ghost {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.eh-cm__detail-body {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 2.5rem;
	align-items: start;
}

@media (max-width: 880px) {
	.eh-cm__detail-body {
		grid-template-columns: 1fr;
	}
}

.eh-cm__section {
	margin-bottom: 2.5rem;
}

.eh-cm__h2 {
	font-size: 1.35rem;
	margin: 0 0 1rem;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__prose {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
}

.eh-cm__video iframe,
.eh-cm__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.eh-cm__video-link a {
	color: var(--eh-pub-accent, #1f6f6f);
}

/* Composer */
.eh-cm__composer {
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 16px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.eh-cm__composer-prompt {
	margin: 0;
	font-weight: 600;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__composer-body,
.eh-cm__composer-video,
.eh-cm__form textarea,
.eh-cm__form input,
.eh-cm__form select {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 10px;
	font: inherit;
	color: var(--eh-pub-ink, #0a1f1e);
	background: #fff;
	box-sizing: border-box;
}

.eh-cm__composer-body {
	resize: vertical;
}

.eh-cm__consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--eh-pub-muted, #5c6b69);
}

.eh-cm__consent input {
	margin-top: 0.2rem;
	width: auto;
}

.eh-cm__composer-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.eh-cm__composer-msg {
	font-size: 0.85rem;
}

.eh-cm__composer-msg.is-error {
	color: #b3261e;
}

.eh-cm__composer-msg.is-ok {
	color: #1f6f6f;
}

/* Feed */
.eh-cm__feed {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.eh-cm__feed-note,
.eh-cm__feed-empty {
	color: var(--eh-pub-muted, #5c6b69);
	font-size: 0.92rem;
}

.eh-cm__post {
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 14px;
	padding: 1.1rem 1.25rem;
}

.eh-cm__post-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.eh-cm__post-author {
	font-weight: 700;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__post-type {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--eh-pub-muted, #5c6b69);
}

.eh-cm__post-title {
	margin: 0 0 0.4rem;
	font-size: 1.05rem;
}

.eh-cm__post-body {
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__post-body p {
	margin: 0 0 0.6rem;
}

/* Side cards */
.eh-cm__side-card {
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 16px;
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.25rem;
}

.eh-cm__side-title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--eh-pub-muted, #5c6b69);
	margin: 0 0 0.65rem;
}

.eh-cm__side-list {
	margin: 0;
	padding-left: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.92rem;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__side-card--disclaimer {
	background: var(--eh-pub-bg, #f9f8f4);
}

.eh-cm__side-card--disclaimer p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.55;
	color: var(--eh-pub-muted, #5c6b69);
}

/* Create form */
.eh-cm__form-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4.5rem);
}

.eh-cm__form {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	background: var(--eh-pub-card, #fff);
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 18px;
	padding: 1.75rem;
}

.eh-cm__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.eh-cm__label {
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--eh-pub-ink, #0a1f1e);
}

.eh-cm__field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 620px) {
	.eh-cm__field-row {
		grid-template-columns: 1fr;
	}
}

.eh-cm__form-note {
	font-size: 0.85rem;
	color: var(--eh-pub-muted, #5c6b69);
	margin: 0;
}
