/* Global100 News Feed */
.g100nf {
	--g100nf-blue: #1670e0;
	--g100nf-blue-dark: #0d58b8;
	--g100nf-navy: #0f2a5c;
	--g100nf-text: #3d4a60;
	--g100nf-muted: #5f6b7e;
	--g100nf-border: #d9e2ee;
	--g100nf-tint: #eef4fc;
	margin: 0 0 32px;
	color: var(--g100nf-text);
	font-size: 14px;
	line-height: 1.5;
}

.g100nf *,
.g100nf *::before,
.g100nf *::after {
	box-sizing: border-box;
}

.g100nf a {
	text-decoration: none;
}

/* ColorMag adds 60px above the content; the design starts the filter bar right under the menu. */
body.home #cm-content {
	padding-top: 24px;
}

.g100nf-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px;
}

.g100nf-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.g100nf-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

/* Filter bar */
.g100nf-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 24px;
	padding: 12px 14px;
	background: var(--g100nf-tint);
	border: 1px solid var(--g100nf-border);
	border-radius: 8px;
}

.g100nf-field {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.g100nf-field label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--g100nf-navy);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.g100nf-field label .g100nf-icon {
	width: 18px;
	height: 18px;
	color: var(--g100nf-blue);
}

.g100nf-filters select,
.g100nf-filters input[type="search"] {
	height: 34px;
	margin: 0;
	padding: 0 10px;
	color: var(--g100nf-navy);
	font-size: 13px;
	font-family: inherit;
	background-color: #fff;
	border: 1px solid var(--g100nf-border);
	border-radius: 5px;
	box-shadow: none;
}

.g100nf-filters select {
	min-width: 150px;
	max-width: 240px;
	padding-right: 28px;
}

.g100nf-field--search {
	position: relative;
	flex: 1 1 180px;
}

.g100nf-field--search .g100nf-icon {
	position: absolute;
	top: 50%;
	left: 11px;
	width: 15px;
	height: 15px;
	color: var(--g100nf-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.g100nf-filters input[type="search"] {
	width: 100%;
	padding-left: 34px;
}

.g100nf-filters select:focus,
.g100nf-filters input[type="search"]:focus {
	border-color: var(--g100nf-blue);
	outline: 2px solid rgba(22, 112, 224, 0.2);
	outline-offset: 0;
}

.g100nf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 34px;
	margin: 0 0 0 auto;
	padding: 0 26px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	line-height: 1;
	background: var(--g100nf-blue);
	border: 0;
	border-radius: 5px;
	cursor: pointer;
}

.g100nf-btn:hover,
.g100nf-btn:focus {
	color: #fff;
	background: var(--g100nf-blue-dark);
}

.g100nf .g100nf-clear {
	color: var(--g100nf-blue);
	font-size: 13px;
	text-decoration: underline;
}

/* Heading */
.g100nf-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	margin: 0 0 14px;
}

.g100nf .g100nf-title {
	margin: 0;
	padding: 0 0 0 12px;
	color: var(--g100nf-navy);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	border-left: 4px solid var(--g100nf-blue);
}

.g100nf .g100nf-count {
	margin: 0;
	color: var(--g100nf-muted);
	font-size: 12px;
}

/* Grid and cards */
.g100nf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 20px;
}

.g100nf-card {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin: 0;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--g100nf-border);
	border-radius: 6px;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.g100nf-card:hover {
	border-color: #c3d3e8;
	box-shadow: 0 2px 8px rgba(15, 42, 92, 0.08);
}

.g100nf-thumb {
	display: block;
	flex: 0 0 112px;
	align-self: flex-start;
	width: 112px;
	height: 76px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--g100nf-tint);
}

.g100nf-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9fbbe0;
	background: linear-gradient(135deg, #f1f6fd 0%, #dce8f8 100%);
}

.g100nf .g100nf-thumb--empty .g100nf-icon {
	width: 30px;
	height: 30px;
}

.g100nf .g100nf-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.g100nf-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.g100nf .g100nf-headline {
	margin: 0 0 4px;
	padding: 0;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.3;
}

.g100nf .g100nf-headline a {
	color: var(--g100nf-navy);
}

.g100nf .g100nf-headline a:hover,
.g100nf .g100nf-headline a:focus {
	color: var(--g100nf-blue);
}

.g100nf .g100nf-summary {
	margin: 0 0 8px;
	padding: 0;
	color: var(--g100nf-text);
	font-size: 12.5px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.g100nf--clamp .g100nf-headline,
.g100nf--clamp .g100nf-summary {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.g100nf--clamp .g100nf-headline {
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.g100nf--clamp .g100nf-summary {
	-webkit-line-clamp: var(--g100nf-lines, 3);
	line-clamp: var(--g100nf-lines, 3);
}

.g100nf-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin-top: auto;
	gap: 6px 12px;
	color: var(--g100nf-muted);
	font-size: 11px;
	line-height: 1.3;
}

.g100nf-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.g100nf-meta-item .g100nf-icon {
	width: 12px;
	height: 12px;
	color: var(--g100nf-navy);
}

.g100nf .g100nf-meta-item a {
	color: var(--g100nf-muted);
}

.g100nf .g100nf-meta-item a:hover,
.g100nf .g100nf-meta-item a:focus {
	color: var(--g100nf-blue);
	text-decoration: underline;
}

.g100nf .g100nf-source {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	padding: 3px 7px;
	color: var(--g100nf-blue);
	font-size: 10.5px;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid var(--g100nf-blue);
	border-radius: 4px;
}

.g100nf .g100nf-source .g100nf-icon {
	width: 11px;
	height: 11px;
}

.g100nf .g100nf-source:hover,
.g100nf .g100nf-source:focus {
	color: #fff;
	background: var(--g100nf-blue);
}

.g100nf-empty {
	padding: 32px 16px;
	text-align: center;
	background: #fff;
	border: 1px dashed var(--g100nf-border);
	border-radius: 6px;
}

.g100nf-empty p {
	margin: 0 0 8px;
}

.g100nf-empty a {
	color: var(--g100nf-blue);
	text-decoration: underline;
}

/* Footer: per-page text, pagination, rows picker */
.g100nf-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 20px;
}

.g100nf .g100nf-perpage {
	flex: 1 1 0;
	margin: 0;
	color: var(--g100nf-muted);
	font-size: 12px;
}

.g100nf-pagination,
.g100nf-rows {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.g100nf-rows {
	flex: 1 1 0;
	justify-content: flex-end;
}

.g100nf .g100nf-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 34px;
	height: 32px;
	padding: 0 10px;
	color: var(--g100nf-navy);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: #fff;
	border: 1px solid var(--g100nf-border);
	border-radius: 5px;
}

.g100nf a.g100nf-page:hover,
.g100nf a.g100nf-page:focus {
	color: var(--g100nf-blue);
	border-color: var(--g100nf-blue);
}

.g100nf .g100nf-page.is-current {
	color: #fff;
	background: var(--g100nf-blue);
	border-color: var(--g100nf-blue);
}

.g100nf .g100nf-page.is-disabled {
	color: #a7b0bf;
	cursor: default;
}

.g100nf .g100nf-prev,
.g100nf .g100nf-next {
	padding: 0 16px;
	color: var(--g100nf-blue);
}

.g100nf .g100nf-dots {
	min-width: 20px;
	padding: 0;
	background: transparent;
	border-color: transparent;
}

.g100nf-rows-label,
.g100nf-rows-current {
	color: var(--g100nf-muted);
	font-size: 12px;
}

.g100nf-rows-label {
	margin-right: 4px;
}

.g100nf-rows-current {
	margin-left: 8px;
}

/* Tablet and mobile: one column */
@media (max-width: 767px) {
	.g100nf-filters {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
		padding: 0;
		background: transparent;
		border: 0;
	}

	.g100nf-field--select {
		position: relative;
		display: block;
		grid-column: span 2;
	}

	.g100nf-field--select:first-child:not(:has(+ .g100nf-field--select)) {
		grid-column: 1 / -1;
	}

	.g100nf-field--select label {
		position: absolute;
		top: 7px;
		left: 10px;
		font-size: 11px;
		font-weight: 600;
		pointer-events: none;
	}

	.g100nf-field--select label .g100nf-icon {
		width: 22px;
		height: 22px;
		margin-top: 8px;
	}

	.g100nf-filters select {
		width: 100%;
		min-width: 0;
		max-width: none;
		height: 52px;
		padding: 18px 26px 0 36px;
		font-size: 12px;
		background-color: var(--g100nf-tint);
	}

	.g100nf-field--search {
		grid-column: 1 / -2;
	}

	.g100nf-clear {
		grid-column: 1 / -1;
	}

	.g100nf-filters input[type="search"] {
		height: 40px;
	}

	.g100nf-btn {
		grid-column: -2 / -1;
		width: 100%;
		height: 40px;
		margin: 0;
		padding: 0 12px;
	}

	.g100nf-clear {
		text-align: center;
	}

	.g100nf .g100nf-title {
		font-size: 20px;
	}

	body.home #cm-content {
		padding-top: 16px;
	}

	.g100nf-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.g100nf-thumb {
		flex-basis: 96px;
		width: 96px;
		height: 66px;
	}

	/* Mobile card as in the design: image + headline/summary on top, the meta row across the full width. */
	.g100nf-card.has-thumb {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 0 12px;
		align-items: start;
	}

	.g100nf-card.has-thumb .g100nf-body {
		display: contents;
	}

	.g100nf-card.has-thumb .g100nf-thumb {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.g100nf-card.has-thumb .g100nf-headline,
	.g100nf-card.has-thumb .g100nf-summary {
		grid-column: 2;
	}

	.g100nf-card.has-thumb .g100nf-meta {
		grid-column: 1 / -1;
		margin-top: 4px;
	}

	.g100nf--clamp .g100nf-summary {
		-webkit-line-clamp: var(--g100nf-lines-m, 4);
		line-clamp: var(--g100nf-lines-m, 4);
	}

	.g100nf .g100nf-headline {
		font-size: 14px;
	}

	.g100nf .g100nf-summary {
		margin-bottom: 6px;
		font-size: 12.5px;
		line-height: 1.45;
	}

	.g100nf-meta {
		gap: 6px 12px;
		font-size: 11px;
	}

	.g100nf .g100nf-source {
		padding: 3px 7px;
		font-size: 10.5px;
	}

	.g100nf-footer {
		justify-content: space-between;
		gap: 12px 8px;
	}

	.g100nf-pagination,
	.g100nf-rows {
		gap: 4px;
	}

	.g100nf .g100nf-page {
		min-width: 30px;
		height: 30px;
		padding: 0 8px;
	}

	.g100nf-rows {
		order: 1;
		flex: 0 0 auto;
		justify-content: flex-start;
	}

	.g100nf-rows-current {
		display: none;
	}

	.g100nf-pagination {
		order: 2;
	}

	.g100nf .g100nf-perpage {
		order: 3;
		flex: 1 0 100%;
	}

	.g100nf .g100nf-prev,
	.g100nf .g100nf-next {
		padding: 0 8px;
	}

	.g100nf .g100nf-prev span,
	.g100nf .g100nf-next span {
		display: none;
	}
}

@media (max-width: 420px) {
	.g100nf-card {
		gap: 10px;
		padding: 8px;
	}

	.g100nf-thumb {
		flex-basis: 84px;
		width: 84px;
		height: 60px;
	}

	.g100nf-card.has-thumb {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 0 10px;
	}

	/* One line, as in the mockup: long names shrink with "…" instead of pushing the button down. */
	.g100nf-meta {
		flex-wrap: nowrap;
		gap: 8px;
		font-size: 10.5px;
	}

	.g100nf-meta-item {
		gap: 3px;
		min-width: 0;
		flex: 0 1 auto;
	}

	.g100nf-meta-item time,
	.g100nf .g100nf-meta-item a {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.g100nf-meta-item .g100nf-icon {
		flex: none;
		width: 11px;
		height: 11px;
	}

	.g100nf .g100nf-source {
		flex: none;
		gap: 3px;
		padding: 3px 5px;
		font-size: 10px;
		white-space: nowrap;
	}

	.g100nf .g100nf-source .g100nf-icon {
		width: 10px;
		height: 10px;
	}
}
