* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

/* Body-level rules only apply when /news/ is the standalone document. When
   the renderer is embedded inside another page (e.g. lasthope), the host owns
   body styling — the news section then opts in via .news-embedded below. */
body.news-standalone {
	margin: 0;
	padding: 0;
	background: #ebebeb;
	color: #1d1d1d;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	-webkit-text-size-adjust: 100%;
	overscroll-behavior-y: contain;
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

/* Embedded variant — sits below the host page's content (e.g. lasthope's
   guarantee). Full-width band so the grid can stretch out at desktop widths
   instead of being trapped inside the host's narrow .page container. */
.news-embedded {
	background: #ebebeb;
	padding-bottom: 8px;
	margin-top: 24px;
	border-top: 1px solid #d0d0d0;
}

.news-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.news-logo {
	height: 32px;
	width: auto;
	display: block;
	flex-shrink: 0;
}

.news-header-title {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.news-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.news-grid {
		padding: 12px;
		padding-top: 0;
		gap: 12px;
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	touch-action: manipulation;
}

@media (min-width: 600px) {
	.news-tile {
		border: 1px solid #d0d0d0;
		border-radius: 8px;
	}
}

.news-tile:hover .news-title,
.news-tile:focus .news-title {
	color: #006699;
}

.news-tile img {
	width: 100%;
	height: clamp(160px, 30dvh, 280px);
	object-fit: cover;
	display: block;
	background: #f5f5f5;
}

@media (min-width: 600px) {
	.news-tile img {
		height: auto;
		aspect-ratio: 1 / 1;
	}
}

.news-tile-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 9px;
	background: #fff;
	color: #1d1d1d;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	border-radius: 999px;
	z-index: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.news-tile-badge-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.news-tile-badge--red    .news-tile-badge-icon { color: #ef4444; }
.news-tile-badge--green  .news-tile-badge-icon { color: #10b981; }
.news-tile-badge--purple .news-tile-badge-icon { color: #a855f7; }
.news-tile-badge--amber  .news-tile-badge-icon { color: #f59e0b; }
.news-tile-badge--blue   .news-tile-badge-icon { color: #3b82f6; }
.news-tile-badge--pink   .news-tile-badge-icon { color: #ec4899; }

.news-title {
	padding: 12px 14px 8px;
	line-height: 1.35;
	font-weight: 600;
	font-size: 17px;
}

@media (min-width: 600px) {
	.news-title {
		padding: 10px 12px 6px;
		font-weight: 500;
		font-size: 1rem;
	}
}

.news-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 4px 14px 14px;
	color: #6b7280;
	font-size: 13px;
}

@media (min-width: 600px) {
	.news-meta {
		gap: 12px;
		padding: 4px 12px 12px;
		font-size: 12px;
	}
}

.news-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.news-meta svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.news-meta-time {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	color: #9ca3af;
}
