/* أخبار Google — RTL Arabic (داكن / فاتح) */
:root {
	--gn-g-blue: #4285f4;
	--gn-g-red: #ea4335;
	--gn-g-yellow: #fbbc04;
	--gn-g-green: #34a853;
	--gn-max: 1280px;
	--gn-font: 'Noto Sans Arabic', 'Google Sans', 'Roboto', system-ui, sans-serif;
}

body.gnews-dark {
	--gn-bg: #1f1f1f;
	--gn-surface: #292a2d;
	--gn-surface-2: #303134;
	--gn-border: #3c4043;
	--gn-text: #e8eaed;
	--gn-text-2: #9aa0a6;
	--gn-source: #8ab4f8;
	--gn-chip: #3c4043;
	--gn-chip-active: #394457;
}

body.gnews-light {
	--gn-bg: #ffffff;
	--gn-surface: #f8f9fa;
	--gn-surface-2: #f1f3f4;
	--gn-border: #dadce0;
	--gn-text: #202124;
	--gn-text-2: #5f6368;
	--gn-source: #1967d2;
	--gn-chip: #e8eaed;
	--gn-chip-active: #d2e3fc;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html[dir="rtl"] body.gnews-app {
	margin: 0;
	font-family: var(--gn-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--gn-text);
	background: var(--gn-bg);
}

.gnews-app a {
	color: inherit;
	text-decoration: none;
}

.gnews-app img {
	display: block;
	max-width: 100%;
	height: auto;
}

.gnews-skip {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Header — مطابق لـ news.google.com */
.gn-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--gn-bg);
}

.gn-header__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: var(--gn-max);
	margin: 0 auto;
	padding: 8px 16px;
	min-height: 64px;
}

.gn-logo {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-shrink: 0;
	text-decoration: none;
	letter-spacing: -0.25px;
}

.gn-logo__google {
	font-family: 'Google Sans', 'Product Sans', sans-serif;
	font-size: 22px;
	font-weight: 400;
	color: var(--gn-text);
}

.gn-logo__news {
	font-family: var(--gn-font);
	font-size: 22px;
	font-weight: 400;
	color: var(--gn-text);
}

.gn-search {
	flex: 1;
	max-width: 720px;
	margin: 0 auto;
	position: relative;
}

.gn-search input {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 36px;
	border: none;
	border-radius: 24px;
	background: var(--gn-surface-2);
	color: var(--gn-text);
	font-family: inherit;
	font-size: 16px;
	outline: none;
}

.gn-search input::placeholder {
	color: var(--gn-text-2);
}

.gn-search input:focus {
	background: #3c4043;
}

.gn-search__icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gn-text-2);
	display: flex;
	pointer-events: none;
}

.gn-search__caret {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gn-text-2);
	display: flex;
	pointer-events: none;
}

.gn-header__tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.gn-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--gn-text-2);
	cursor: pointer;
}

.gn-icon-btn:hover {
	background: rgba(232, 234, 237, 0.08);
	color: var(--gn-text);
}

.gn-icon-btn--avatar {
	width: 32px;
	height: 32px;
	padding: 0;
	overflow: hidden;
}

.gn-icon-btn--avatar img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
}

/* قائمة اختيار الدولة */
.gn-country-menu {
	position: relative;
}

.gn-country-menu__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: none;
	border-radius: 20px;
	background: transparent;
	color: var(--gn-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
	white-space: nowrap;
}

.gn-country-menu__btn:hover {
	background: rgba(232, 234, 237, 0.08);
}

.gn-country-menu__btn::-webkit-details-marker {
	display: none;
}

.gn-country-menu__btn::marker {
	content: '';
}

.gn-country-menu__chev {
	font-size: 12px;
	color: var(--gn-text-2);
	line-height: 1;
}

.gn-country-menu[open] .gn-country-menu__chev {
	transform: rotate(180deg);
}

.gn-country-menu__panel {
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-end: 0;
	z-index: 200;
	min-width: 200px;
	max-width: min(280px, calc(100vw - 24px));
	max-height: min(360px, calc(100vh - 120px));
	overflow: auto;
	padding: 8px 0;
	border-radius: 12px;
	background: var(--gn-surface);
	border: 1px solid var(--gn-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.gn-country-menu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gn-country-menu__item {
	display: block;
	padding: 10px 20px;
	font-size: 14px;
	color: var(--gn-text);
	text-decoration: none;
	white-space: nowrap;
}

.gn-country-menu__item:hover {
	background: rgba(232, 234, 237, 0.08);
}

.gn-country-menu__item.is-active {
	color: var(--gn-source);
	font-weight: 500;
}

/* شرائح التنقل */
.gn-nav {
	border-bottom: 1px solid var(--gn-border);
	background: var(--gn-bg);
}

.gn-nav__scroll {
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.gn-nav__scroll::-webkit-scrollbar {
	display: none;
}

.gn-nav__sep {
	flex-shrink: 0;
	width: 1px;
	height: 20px;
	margin: 0 8px;
	background: var(--gn-border);
	align-self: center;
}

.gn-nav__chip {
	flex-shrink: 0;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--gn-text);
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.gn-nav__chip:hover {
	color: var(--gn-text);
	background: rgba(232, 234, 237, 0.04);
}

.gn-nav__chip.is-active {
	color: var(--gn-text);
	border-bottom-color: var(--gn-g-blue);
}

/* الملخّص — عنوان + طقس محلي في صف واحد */
.gn-briefing-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title locale"
		"date locale";
	align-items: start;
	gap: 0 24px;
	padding: 8px 0 20px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--gn-border);
}

.gn-briefing-head__title {
	grid-area: title;
	margin: 0;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 400;
	color: var(--gn-text);
	letter-spacing: -0.5px;
}

.gn-briefing-head__date {
	grid-area: date;
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--gn-text-2);
}

.gn-briefing__locale {
	grid-area: locale;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: end;
	align-self: center;
}

.gn-briefing__locale-label {
	display: block;
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-briefing__locale-main {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 2px 0;
}

.gn-briefing__locale-temp {
	font-size: 36px;
	font-weight: 300;
	line-height: 1;
	color: var(--gn-text);
}

.gn-briefing__locale-icon {
	font-size: 40px;
	line-height: 1;
}

.gn-briefing__locale-place {
	font-size: 12px;
	color: var(--gn-text-2);
}

/* المحتوى */
.gn-main {
	width: 100%;
	min-height: 50vh;
}

/* بطاقات عامة */
.gn-card {
	background: var(--gn-surface);
	border: none;
	border-radius: 12px;
	padding: 16px;
}

.gn-card__title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 500;
	color: var(--gn-text);
}

.gn-muted {
	color: var(--gn-text-2);
	font-size: 14px;
}

.gn-chev {
	display: inline-block;
	margin-inline-start: 2px;
}

/* أقسام */
.gn-section {
	margin-bottom: 32px;
	padding-top: 8px;
}

.gn-section--topics {
	padding-top: 16px;
}

.gn-section--category {
	padding-top: 16px;
}

.gn-section__title {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 400;
	color: var(--gn-text);
}

/* مواضيعك — شبكة */
.gn-topics-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 640px) {
	.gn-topics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.gn-topics-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.gn-topic-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.gn-topic-card__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 500;
}

.gn-topic-card__title a {
	color: var(--gn-source);
}

.gn-topic-card__title a:hover {
	text-decoration: underline;
}

.gn-topic-card__list {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gn-topic-card__more {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-topic-card__more:hover {
	text-decoration: underline;
}

/* صف قصة */
.gn-row-story {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
	color: inherit;
}

.gn-row-story:first-child {
	padding-top: 0;
}

.gn-row-story:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.gn-row-story__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gn-row-story__source {
	font-size: 12px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-row-story__title {
	font-size: 14px;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gn-row-story__time {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-row-story__thumb {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--gn-chip);
}

.gn-row-story__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gn-row-story:hover .gn-row-story__title {
	text-decoration: underline;
}

/* قصة مميزة / بطاقات legacy */
.gnews-featured,
.gnews-card,
.gnews-tile {
	display: block;
	color: inherit;
}

.gnews-featured__media,
.gnews-card__media,
.gnews-tile__media {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--gn-chip);
	margin-bottom: 12px;
}

.gnews-featured__media img,
.gnews-card__media img,
.gnews-tile__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gnews-featured__source,
.gnews-card__source,
.gnews-tile__source {
	font-size: 13px;
	font-weight: 500;
	color: var(--gn-source);
}

.gnews-featured__title {
	margin: 8px 0 0;
	font-size: clamp(18px, 2.5vw, 24px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--gn-text);
}

.gnews-card__title,
.gnews-tile__title {
	margin: 6px 0 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gnews-featured__meta,
.gnews-card__meta,
.gnews-tile__meta {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gnews-featured:hover .gnews-featured__title,
.gnews-card:hover .gnews-card__title,
.gnews-tile:hover .gnews-tile__title {
	text-decoration: underline;
}

/* بطاقة طقس (legacy) */
.gn-weather-card__title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 400;
}

.gn-weather-card__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: flex-end;
}

.gn-weather-card__today {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gn-weather-card__today-main {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gn-weather-card__icon {
	font-size: 28px;
}

.gn-weather-card__temps {
	display: flex;
	gap: 8px;
	font-size: 14px;
}

.gn-weather-card__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 52px;
	font-size: 13px;
}

.gn-weather-card__day-label {
	color: var(--gn-text-2);
}

.gn-weather-card__day-icon {
	font-size: 22px;
}

.gn-weather-card__local {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--gn-border);
}

.gn-weather-card__local-temp {
	font-size: 28px;
	font-weight: 300;
}

.gn-weather-card__city {
	display: block;
	margin-top: 4px;
}

/* ويدجت طقس (legacy) */
.gn-weather-widget {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: inherit;
}

.gn-weather-widget__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gn-weather-widget__city {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-weather-widget__temp {
	font-size: 24px;
	font-weight: 300;
	color: var(--gn-text);
}

.gn-weather-widget__icon {
	font-size: 28px;
}

.gn-weather-widget__brand {
	font-size: 11px;
	color: var(--gn-text-2);
}

/* الملخّص الكامل (legacy section) */
.gn-briefing {
	border-bottom: 1px solid var(--gn-border);
}

.gn-briefing__inner {
	padding: 16px 0 20px;
}

.gn-briefing__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 36px);
	font-weight: 400;
}

/* تحسينات مقال */
.gnews-article__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.gnews-article__content a {
	color: var(--gn-source);
	text-decoration: underline;
}

.gnews-article__content a:hover {
	filter: brightness(1.1);
}

.gnews-article__source {
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--gn-border);
	font-size: 14px;
	color: var(--gn-text-2);
}

.gnews-article__source strong {
	color: var(--gn-text);
}

/* أزرار */
.gnews-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 24px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid var(--gn-border);
	background: var(--gn-surface);
	color: var(--gn-text);
	cursor: pointer;
}

.gnews-btn:hover {
	background: var(--gn-surface-2);
}

.gnews-btn--primary {
	background: var(--gn-source);
	border-color: var(--gn-source);
	color: #202124;
}

.gnews-btn--primary:hover {
	filter: brightness(1.08);
}

.gnews-empty {
	text-align: center;
	padding: 40px 16px;
	color: var(--gn-text-2);
}

.gnews-empty p {
	margin: 0 0 16px;
}

/* تجاوب — محتوى */
@media (max-width: 767px) {
	.gn-bottom-story {
		flex-direction: column;
	}

	.gn-bottom-story__thumb {
		width: 100%;
		max-width: none;
	}

	.gn-top-hero__upper {
		grid-template-columns: 1fr;
	}

	.gn-briefing-head {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"date"
			"locale";
	}

	.gn-briefing__locale {
		align-self: start;
		align-items: flex-start;
		text-align: start;
		margin-top: 12px;
	}

	.gn-suggested-row__thumb {
		width: 64px;
		height: 64px;
	}
}

@media (max-width: 599px) {
	.gn-header__bar {
		flex-wrap: wrap;
		padding: 8px 12px;
	}

	.gn-search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}

	.gn-logo__google,
	.gn-logo__news {
		font-size: 18px;
	}
}

@media (min-width: 1280px) {
	.gn-header__bar {
		padding-inline: 24px;
	}

	.gn-nav__scroll {
		padding-inline: 16px;
	}

	.gn-home {
		padding-inline: 24px;
	}
}


/* الصفحة الرئيسية */
/* الصفحة الرئيسية — عمودان مثل Google News */
.gn-home {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: var(--gn-max);
	margin: 0 auto;
	padding: 0 16px 48px;
}

.gn-home__columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: start;
}

@media (min-width: 1024px) {
	.gn-home__columns {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.gn-chev {
	display: inline-block;
	margin-inline-start: 2px;
}

/* أهم الأخبار */
.gn-top-block {
	min-width: 0;
}

.gn-top-block__heading {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 500;
}

.gn-top-block__heading a {
	color: var(--gn-source);
}

.gn-top-block__heading a:hover {
	text-decoration: underline;
}

.gn-top-block__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 20px;
	padding: 12px 20px;
	border-radius: 24px;
	border: 1px solid var(--gn-border);
	font-size: 14px;
	font-weight: 500;
	color: var(--gn-source);
	text-align: center;
	background: transparent;
}

.gn-top-block__more-icon {
	display: inline-flex;
	color: var(--gn-g-blue);
}

.gn-top-block__more:hover {
	background: rgba(138, 180, 248, 0.08);
}

/* بطل أهم الأخبار */
.gn-top-hero {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.gn-top-hero__upper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 768px) {
	.gn-top-hero__upper {
		grid-template-columns: minmax(200px, 46%) minmax(0, 1fr);
		gap: 20px;
		align-items: start;
	}
}

.gn-top-hero__image {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--gn-chip);
}

.gn-top-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gn-top-hero__side {
	display: flex;
	flex-direction: column;
}

.gn-top-hero__lead {
	display: block;
	color: inherit;
}

.gn-top-hero__source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-top-hero__favicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--gn-chip);
	font-size: 10px;
	font-weight: 600;
	color: var(--gn-text);
}

.gn-top-hero__title {
	margin: 8px 0 0;
	font-size: clamp(20px, 2.5vw, 28px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--gn-text);
}

.gn-top-hero__meta {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-top-hero__lead:hover .gn-top-hero__title {
	text-decoration: underline;
}

/* عناوين جانبية (نص فقط) */
.gn-story-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
	color: inherit;
}

.gn-top-hero__side .gn-story-text:first-child {
	padding-top: 0;
}

.gn-top-hero__side .gn-story-text:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.gn-story-text__source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-story-text__favicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gn-chip);
	font-size: 9px;
	font-weight: 600;
}

.gn-story-text__title {
	font-size: 14px;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gn-story-text__time {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-story-text:hover .gn-story-text__title {
	text-decoration: underline;
}

/* خبر سفلي بعد «عرض المزيد» */
.gn-bottom-story {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--gn-border);
	color: inherit;
}

.gn-bottom-story__thumb {
	flex-shrink: 0;
	width: min(46%, 280px);
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--gn-chip);
}

.gn-bottom-story__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gn-bottom-story__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gn-bottom-story__source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-bottom-story__favicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gn-chip);
	font-size: 9px;
	font-weight: 600;
}

.gn-bottom-story__title {
	font-size: 16px;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gn-bottom-story__time {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-bottom-story:hover .gn-bottom-story__title {
	text-decoration: underline;
}

/* مقالات مقترحة لك */
.gn-suggested {
	min-width: 0;
}

.gn-suggested__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.gn-suggested__title {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	color: #c58af9;
}

.gn-suggested__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--gn-text-2);
	cursor: pointer;
}

.gn-suggested__help:hover {
	background: rgba(232, 234, 237, 0.08);
	color: var(--gn-text);
}

.gn-suggested__list {
	display: flex;
	flex-direction: column;
}

.gn-suggested-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gn-border);
	color: inherit;
}

.gn-suggested-row:first-child {
	padding-top: 0;
}

.gn-suggested-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.gn-suggested-row__thumb {
	position: relative;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--gn-chip);
}

.gn-suggested-row__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gn-suggested-row__badge {
	position: absolute;
	bottom: 4px;
	right: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gn-g-blue);
	color: #fff;
}

.gn-suggested-row__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gn-suggested-row__source {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-suggested-row__favicon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--gn-chip);
	font-size: 9px;
	font-weight: 600;
}

.gn-suggested-row__title {
	font-size: 14px;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gn-suggested-row__time {
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-suggested-row:hover .gn-suggested-row__title {
	text-decoration: underline;
}

/* قصص عامة */
.gn-story {
	border-bottom: 1px solid var(--gn-border);
}

.gn-story__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
}

.gn-story__thumb {
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--gn-chip);
}

.gn-story__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gn-story__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gn-story__source {
	font-size: 13px;
	font-weight: 500;
	color: var(--gn-source);
	line-height: 1.3;
}

.gn-story__title {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--gn-text);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gn-story__time {
	margin: 0;
	font-size: 12px;
	color: var(--gn-text-2);
}

.gn-story:hover .gn-story__title {
	text-decoration: underline;
}

/* مجموعات مواضيع */
.gn-cluster {
	margin-bottom: 28px;
	padding-bottom: 8px;
	border-bottom: 8px solid #000;
}

.gn-cluster__heading {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 400;
	color: var(--gn-text);
}

.gn-cluster__list .gn-story {
	padding: 14px 0;
}

.gn-story--compact .gn-story__link {
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
}

.gn-story--compact .gn-story__title {
	font-size: 15px;
	-webkit-line-clamp: 3;
}

.gn-cluster__more {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--gn-source);
}

.gn-cluster__more:hover {
	text-decoration: underline;
}

/* أزرار */
.gnews-btn { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 20px; font-size: 14px; font-weight: 500; border: 1px solid var(--gn-border); background: var(--gn-surface); color: var(--gn-text); }
.gnews-btn--primary { background: var(--gn-source); border-color: var(--gn-source); color: #202124; }
.gnews-empty { text-align: center; padding: 40px 16px; color: var(--gn-text-2); }

/* صفحة المقال */
.gnews-article {
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 0 48px;
}

.gnews-article__back {
	color: var(--gn-source);
	font-size: 14px;
	margin-bottom: 20px;
	display: inline-block;
}

.gnews-article__title {
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 400;
	line-height: 1.35;
	margin: 0 0 12px;
}

.gnews-article__meta {
	color: var(--gn-text-2);
	font-size: 13px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gn-border);
}

.gnews-article__hero {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 24px;
	background: var(--gn-chip);
}

.gnews-article__hero img {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
}

.gnews-article__content {
	font-size: 17px;
	line-height: 1.75;
}

.gnews-article__content p {
	margin: 0 0 1em;
}

.gnews-article__cat {
	color: var(--gn-source);
	font-size: 13px;
}

.gn-footer {
	max-width: var(--gn-max);
	margin: 0 auto;
	padding: 24px 16px;
	text-align: center;
	font-size: 12px;
	color: var(--gn-text-2);
	border-top: 1px solid var(--gn-border);
}

.gn-footer p {
	margin: 0;
}

.gn-footer a {
	color: var(--gn-source);
}

/* تبديل الوضع الداكن / الفاتح */
.gn-theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--gn-text-2);
	cursor: pointer;
}

.gn-theme-btn:hover {
	background: rgba(232, 234, 237, 0.08);
	color: var(--gn-text);
}

body.gnews-light .gn-theme-btn:hover {
	background: rgba(32, 33, 36, 0.08);
}

.gn-theme-btn__icon {
	display: block;
}

body.gnews-dark .gn-theme-btn__icon--light {
	display: none;
}

body.gnews-light .gn-theme-btn__icon--dark {
	display: none;
}

@media (max-width: 599px) {
	.gn-header__bar {
		flex-wrap: wrap;
	}

	.gn-search {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
	}
}