/*
 * The newsroom - "نشرة الأخبار" operations room.
 *
 * A live head, a day-grouped river, and a country-files rail. Every colour and
 * size comes from the theme tokens; nothing is hard-coded except the pulse.
 */

.ai-newsroom {
	margin-block: var(--ai-space-5, 1.25rem) var(--ai-space-8, 3rem);
}

.ai-newsroom__head {
	margin-block-end: var(--ai-space-4, 1rem);
	padding-block-end: var(--ai-space-3, 0.75rem);
	border-block-end: 2px solid var(--ai-brand, #086af5);
}

.ai-newsroom__title {
	margin: 0;
}

.ai-newsroom__lede {
	margin-block: var(--ai-space-2, 0.5rem) 0;
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.9rem);
}

/* Breaking ticker: a navy strip that reads as the newsroom's pulse line. */
.ai-newsroom__ticker {
	display: flex;
	align-items: center;
	gap: var(--ai-space-3, 0.75rem);
	margin-block-end: var(--ai-space-5, 1.25rem);
	padding: var(--ai-space-2, 0.5rem) var(--ai-space-3, 0.75rem);
	background: var(--ai-navy, #060c46);
	color: #fff;
	border-radius: var(--ai-radius, 0.5rem);
	overflow: hidden;
}

.ai-newsroom__ticker-label {
	flex: 0 0 auto;
	padding: 0.15rem 0.6rem;
	background: #e3342f;
	color: #fff;
	border-radius: 999px;
	font-size: var(--ai-fs-sm, 0.85rem);
	font-weight: 700;
}

.ai-newsroom__ticker-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ai-space-2, 0.5rem) var(--ai-space-5, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.ai-newsroom__ticker-list a {
	color: #fff;
	text-decoration: none;
	font-size: var(--ai-fs-sm, 0.9rem);
}

.ai-newsroom__ticker-list a:hover,
.ai-newsroom__ticker-list a:focus-visible {
	color: var(--ai-gold-on-navy, #e6c98a);
	text-decoration: underline;
}

/* Two columns on wide screens: the river leads, the files sit beside it. */
.ai-newsroom__grid {
	display: grid;
	gap: var(--ai-space-6, 1.5rem);
}

@media (min-width: 60rem) {
	.ai-newsroom__grid {
		grid-template-columns: minmax(0, 1fr) 18rem;
		align-items: start;
	}
}

/* نشرة اليوم - the brief, reused. */
.ai-today {
	margin-block-end: var(--ai-space-6, 1.5rem);
	padding: var(--ai-space-4, 1rem);
	background: var(--ai-bg-sunken, #f4f6fb);
	border-radius: var(--ai-radius, 0.5rem);
	border-inline-start: 3px solid var(--ai-brand, #086af5);
}

.ai-today__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--ai-space-2, 0.5rem) var(--ai-space-3, 0.75rem);
	margin-block-end: var(--ai-space-3, 0.75rem);
}

.ai-today__kicker {
	font-weight: 700;
	color: var(--ai-brand, #086af5);
}

.ai-today__edition {
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.85rem);
}

.ai-today__lead {
	display: grid;
	gap: var(--ai-space-3, 0.75rem);
	margin-block-end: var(--ai-space-3, 0.75rem);
}

@media (min-width: 30rem) {
	.ai-today__lead {
		grid-template-columns: 9rem minmax(0, 1fr);
		align-items: start;
	}
}

.ai-today__lead-media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--ai-radius, 0.5rem);
}

.ai-today__lead-title {
	margin: 0;
	font-size: var(--ai-fs-lg, 1.35rem);
	line-height: 1.3;
}

.ai-today__lead-title a {
	color: var(--ai-text, #14182b);
	text-decoration: none;
}

.ai-today__lead-title a:hover,
.ai-today__lead-title a:focus-visible {
	color: var(--ai-brand, #086af5);
}

.ai-today__lead-summary {
	margin-block: var(--ai-space-2, 0.5rem) 0;
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.9rem);
}

.ai-today__bullets {
	margin: 0;
	padding-inline-start: 1.1rem;
	display: grid;
	gap: 0.3rem;
}

.ai-today__bullets a {
	color: var(--ai-text, #14182b);
	text-decoration: none;
}

.ai-today__bullets a:hover,
.ai-today__bullets a:focus-visible {
	color: var(--ai-brand, #086af5);
	text-decoration: underline;
}

.ai-today__know {
	margin-block: var(--ai-space-3, 0.75rem) 0;
	padding-block-start: var(--ai-space-3, 0.75rem);
	border-block-start: 1px solid var(--ai-line, #d7dbe3);
	font-size: var(--ai-fs-sm, 0.9rem);
}

.ai-today__know strong {
	color: var(--ai-brand, #086af5);
}

/* قيد التطور - the live pulse row. */
.ai-developing {
	margin-block-end: var(--ai-space-6, 1.5rem);
}

.ai-developing__title,
.ai-river__title,
.ai-files__title {
	margin-block: 0 var(--ai-space-3, 0.75rem);
	font-size: var(--ai-fs-md, 1.05rem);
}

.ai-developing__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ai-pulse {
	display: inline-block;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: #e3342f;
	box-shadow: 0 0 0 0 rgba(227, 52, 47, 0.6);
	animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(227, 52, 47, 0.55); }
	70%  { box-shadow: 0 0 0 0.6rem rgba(227, 52, 47, 0); }
	100% { box-shadow: 0 0 0 0 rgba(227, 52, 47, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.ai-pulse {
		animation: none;
	}
}

.ai-developing__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--ai-space-2, 0.5rem);
}

.ai-developing__list li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding: var(--ai-space-2, 0.5rem) var(--ai-space-3, 0.75rem);
	background: var(--ai-bg-sunken, #f4f6fb);
	border-radius: var(--ai-radius, 0.5rem);
}

.ai-developing__list a {
	color: var(--ai-text, #14182b);
	text-decoration: none;
	font-weight: 600;
}

.ai-developing__list a:hover,
.ai-developing__list a:focus-visible {
	color: var(--ai-brand, #086af5);
}

.ai-developing__list time {
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.8rem);
}

/* النهر الزمني - day-grouped timeline. */
.ai-river__list {
	margin: 0 0 var(--ai-space-5, 1.25rem);
	padding: 0;
	list-style: none;
}

.ai-river__day {
	position: sticky;
	top: 0;
	z-index: 1;
	margin-block: var(--ai-space-4, 1rem) var(--ai-space-2, 0.5rem);
	padding-block: 0.3rem;
	background: var(--ai-bg, #fff);
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.8rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	border-block-end: 1px solid var(--ai-line, #d7dbe3);
}

.ai-river__item {
	display: grid;
	grid-template-columns: 3.25rem minmax(0, 1fr);
	gap: var(--ai-space-3, 0.75rem);
	padding-block: var(--ai-space-3, 0.75rem);
	border-block-end: 1px solid var(--ai-line, #eef1f6);
}

.ai-river__time {
	color: var(--ai-brand, #086af5);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	font-size: var(--ai-fs-sm, 0.85rem);
	padding-block-start: 0.1rem;
}

.ai-river__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.25rem;
}

.ai-river__place {
	font-size: var(--ai-fs-sm, 0.75rem);
	color: var(--ai-text-muted, #5c6478);
}

.ai-river__headline {
	margin: 0;
	font-size: var(--ai-fs-md, 1.05rem);
	line-height: 1.35;
}

.ai-river__headline a {
	color: var(--ai-text, #14182b);
	text-decoration: none;
}

.ai-river__headline a:hover,
.ai-river__headline a:focus-visible {
	color: var(--ai-brand, #086af5);
}

.ai-river__meta {
	margin-block: 0.25rem 0;
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.75rem);
}

.ai-river__empty {
	color: var(--ai-text-muted, #5c6478);
}

.ai-newsroom__filters {
	margin-block-start: var(--ai-space-4, 1rem);
}

.ai-newsroom__filters > summary {
	cursor: pointer;
	color: var(--ai-brand, #086af5);
	font-weight: 600;
}

.ai-newsroom__filters[open] > summary {
	margin-block-end: var(--ai-space-3, 0.75rem);
}

/* ملفات الدول - the country-files rail. */
.ai-files {
	padding: var(--ai-space-4, 1rem);
	background: var(--ai-bg-sunken, #f4f6fb);
	border-radius: var(--ai-radius, 0.5rem);
}

@media (min-width: 60rem) {
	.ai-files {
		position: sticky;
		top: var(--ai-space-4, 1rem);
	}
}

.ai-files__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--ai-space-3, 0.75rem);
}

.ai-files__list li {
	display: grid;
	gap: 0.15rem;
	padding-block-end: var(--ai-space-3, 0.75rem);
	border-block-end: 1px solid var(--ai-line, #d7dbe3);
}

.ai-files__list li:last-child {
	padding-block-end: 0;
	border-block-end: 0;
}

.ai-files__list a {
	color: var(--ai-text, #14182b);
	text-decoration: none;
	font-weight: 600;
}

.ai-files__list a:hover,
.ai-files__list a:focus-visible {
	color: var(--ai-brand, #086af5);
}

.ai-files__list time {
	color: var(--ai-text-muted, #5c6478);
	font-size: var(--ai-fs-sm, 0.75rem);
}
