/* Green Media page */
.green-media-section {
	padding: 3rem 0 5rem;
}

.gm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 2rem;
	align-items: start;
	margin-bottom: 2.5rem;
}

.gm-title {
	margin: 0 0 1rem;
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--green-800, #14532d);
}

.gm-featured {
	border: 1px solid rgba(47, 125, 77, .16);
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.gm-featured-image-wrap {
	position: relative;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #f3f4f6;
}

.gm-featured-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gm-featured-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	background: #eef7ef url('https://uigreenmetric.com/wp-content/uploads/2026/03/ALT.1_UI-Green-Metric_SCR-scaled.png') center/cover no-repeat;
}

.gm-featured-placeholder svg {
	display: none;
}

.gm-featured-chip {
	position: absolute;
	left: 1rem;
	top: 1rem;
	display: inline-block;
	padding: .3rem .65rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .03em;
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.gm-featured-body {
	padding: 1.1rem 1.15rem 1.25rem;
}

.gm-meta {
	margin: 0 0 .55rem;
	font-size: .84rem;
	color: #4b5563;
	font-weight: 600;
}

.gm-sep {
	opacity: .45;
	padding: 0 .3rem;
}

.gm-featured h3 {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.4;
	color: #0f172a;
}

.gm-overview {
	margin: .75rem 0 1rem;
	font-size: .94rem;
	line-height: 1.55;
	color: #475569;
}

.gm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .58rem 1rem;
	border-radius: .55rem;
	background: var(--green-600, #2f7d4d);
	color: #fff;
	font-weight: 700;
	font-size: .86rem;
	text-decoration: none;
	transition: background .2s;
}

.gm-btn:hover {
	background: var(--green-700, #1b5e36);
}

.gm-dialogue {
	position: sticky;
	top: 5.5rem;
}

.gm-dialogue-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .9rem;
}

.gm-dialogue-card {
	border: 1px solid rgba(47, 125, 77, .16);
	border-radius: .85rem;
	overflow: hidden;
	background: #fff;
}

.gm-dialogue-thumb-wrap {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
	overflow: hidden;
}

.gm-dialogue-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gm-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: transparent;
	background: #eef7ef url('https://uigreenmetric.com/wp-content/uploads/2026/03/ALT.1_UI-Green-Metric_SCR-scaled.png') center/cover no-repeat;
}

.gm-thumb-placeholder svg {
	display: none;
}

.gm-platform {
	position: absolute;
	left: .6rem;
	top: .6rem;
	display: inline-block;
	padding: .2rem .55rem;
	border-radius: 999px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: #e2e8f0;
	color: #0f172a;
}

.gm-platform--youtube {
	background: #fee2e2;
	color: #991b1b;
}

.gm-platform--instagram {
	background: #fce7f3;
	color: #9d174d;
}

.gm-dialogue-body {
	padding: .75rem .85rem .85rem;
}

.gm-dialogue-body h3 {
	margin: 0;
	font-size: .9rem;
	line-height: 1.35;
}

.gm-dialogue-body h3 a {
	text-decoration: none;
	color: #0f172a;
}

.gm-dialogue-body h3 a:hover {
	color: var(--green-700, #1b5e36);
}

.gm-dialogue-date {
	margin: .45rem 0 0;
	font-size: .78rem;
	font-weight: 600;
	color: #64748b;
}

.gm-archives {
	border-top: 1px solid rgba(47, 125, 77, .18);
	padding-top: 2rem;
}

.gm-archives-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: .8rem;
}

.gm-archive-count {
	font-size: .85rem;
	font-weight: 600;
	color: #475569;
}

.gm-table-wrap {
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: .8rem;
	background: #fff;
}

.gm-archive-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 680px;
}

.gm-archive-table th,
.gm-archive-table td {
	padding: .8rem .85rem;
	text-align: left;
	font-size: .86rem;
	vertical-align: top;
	border-bottom: 1px solid #f1f5f9;
}

.gm-archive-table th {
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1e3a2a;
	background: #f8fafc;
}

.gm-table-link {
	display: inline-block;
	padding: .28rem .58rem;
	border: 1px solid #bbf7d0;
	border-radius: .45rem;
	text-decoration: none;
	font-weight: 700;
	font-size: .74rem;
	color: #166534;
}

.gm-table-link:hover {
	background: #f0fdf4;
}

.gm-empty-card {
	border: 1px dashed #cbd5e1;
	border-radius: .8rem;
	padding: 1rem;
	background: #f8fafc;
	color: #475569;
	font-size: .9rem;
}

@media (max-width: 1100px) {
	.gm-layout {
		grid-template-columns: 1fr;
	}

	.gm-dialogue {
		position: static;
	}

	.gm-dialogue-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.gm-dialogue-grid {
		grid-template-columns: 1fr;
	}

	.gm-title {
		font-size: 1.2rem;
	}

	.gm-featured h3 {
		font-size: 1rem;
	}
}
