/* Global100 "Quick Links" box (Settings > News Feed > Right-side links). */
.g100nf-layout.has-links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

.g100nf-layout-main {
	min-width: 0;
}

.g100nf-links {
	box-sizing: border-box;
	padding: 14px;
	border: 1px solid #dbe6f3;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
}

.g100nf-links *,
.g100nf-links *::before,
.g100nf-links *::after {
	box-sizing: border-box;
}

.g100nf-links .g100nf-links-title {
	position: relative;
	margin: 0 0 10px;
	padding: 0 0 0 12px;
	border: 0;
	color: #0b1f3f;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.g100nf-links .g100nf-links-title::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 4px;
	border-radius: 2px;
	background: #1670e0;
}

.g100nf-links .g100nf-links-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.g100nf-links .g100nf-links-list li {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.g100nf-links .g100nf-links-list li::before {
	content: none;
}

.g100nf-links .g100nf-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 6px 8px 6px 6px;
	border: 1px solid #e6eef8;
	border-radius: 8px;
	background: #f7faff;
	color: #0b1f3f;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.g100nf-links .g100nf-link:hover,
.g100nf-links .g100nf-link:focus-visible {
	border-color: #b9d3f3;
	background: #eef4fc;
	box-shadow: 0 2px 8px rgba(11, 31, 63, 0.08);
	color: #1670e0;
}

.g100nf-links .g100nf-link-img {
	flex: none;
	width: 52px;
	height: 52px;
	margin: 0;
	border-radius: 6px;
	background: #fff;
	object-fit: cover;
}

.g100nf-links .g100nf-link-text {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.g100nf-links .g100nf-link .g100nf-icon {
	flex: none;
	width: 16px;
	height: 16px;
	color: #7a93b5;
}

.g100nf-links .g100nf-link:hover .g100nf-icon,
.g100nf-links .g100nf-link:focus-visible .g100nf-icon {
	color: #1670e0;
}

.g100nf-links .g100nf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Desktop: links in a column on the right of the news. */
@media (min-width: 1100px) {
	.g100nf-layout.has-links {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
	}

	.g100nf-layout.has-links .g100nf-links {
		position: sticky;
		top: 16px;
	}

	.g100nf-layout.has-links .g100nf-links-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.admin-bar .g100nf-layout.has-links .g100nf-links {
		top: 48px;
	}
}

/* Phones: two small tiles per row below the news. */
@media (max-width: 600px) {
	.g100nf-links {
		padding: 12px;
	}

	.g100nf-links .g100nf-links-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.g100nf-links .g100nf-link {
		gap: 8px;
		min-height: 56px;
		padding: 5px 6px 5px 5px;
	}

	.g100nf-links .g100nf-link-img {
		width: 44px;
		height: 44px;
	}

	.g100nf-links .g100nf-link-text {
		font-size: 12.5px;
	}

	.g100nf-links .g100nf-link .g100nf-icon {
		display: none;
	}
}
