/* GTG Header Bars — top bar (date / Gulf weather / local time) + Highlights ticker */

.gtg-topbar,
.gtg-highlights {
	--gtg-accent: var(--c-main, #2ab391);
	font-family: var(--ui-font, var(--body-font, system-ui, sans-serif));
	line-height: 1.3;
}

.gtg-topbar ul,
.gtg-highlights ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ---------- Shared marquee ---------- */

.gtg-marquee {
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.gtg-marquee__track {
	display: flex;
	width: max-content;
}

.gtg-marquee__list {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* The duplicate list only exists to make the loop seamless. */
.gtg-marquee__list + .gtg-marquee__list {
	display: none;
}

.gtg-marquee.is-running .gtg-marquee__list + .gtg-marquee__list {
	display: flex;
}

.gtg-marquee.is-running .gtg-marquee__list {
	padding-right: var(--gtg-gap, 2.5rem);
}

.gtg-marquee.is-running .gtg-marquee__track {
	animation: gtg-marquee var(--gtg-dur, 40s) linear infinite;
}

.gtg-marquee.is-running:hover .gtg-marquee__track,
.gtg-marquee.is-running:focus-within .gtg-marquee__track {
	animation-play-state: paused;
}

@keyframes gtg-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---------- Top bar ---------- */

.gtg-topbar {
	background: #f1f2f4;
	color: #1d1d1f;
	font-size: 13px;
	border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.gtg-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	gap: 0;
	white-space: nowrap;
}

.gtg-topbar__date,
.gtg-topbar__time {
	flex-shrink: 0;
	font-weight: 600;
}

.gtg-topbar__wx {
	flex: 0 1 auto;
	margin: 0 12px;
	padding: 0 12px;
	border-left: 1px solid #c9ccd1;
	border-right: 1px solid #c9ccd1;
}

/* Fade edges while scrolling. */
.gtg-topbar__wx.is-running {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}

.gtg-wx {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.gtg-wx + .gtg-wx {
	margin-left: 10px;
	padding-left: 10px;
	border-left: 1px solid #c9ccd1;
}

.gtg-wx__city {
	font-weight: 500;
}

.gtg-wx__temp {
	font-weight: 600;
}

.gtg-ico {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
}

.gtg-ico--sun    { color: #f2a20c; }
.gtg-ico--moon   { color: #6b7a99; }
.gtg-ico--partly { color: #e8930c; }
.gtg-ico--cloud,
.gtg-ico--fog    { color: #7d8794; }
.gtg-ico--rain   { color: #2f7fd1; }
.gtg-ico--storm  { color: #6c4fd1; }
.gtg-ico--clock  { color: var(--gtg-accent); }

.gtg-topbar__time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.gtg-time__place {
	font-weight: 400;
	opacity: .75;
}

.gtg-time__place:not(:empty)::before {
	content: "· ";
}

/* ---------- Highlights ticker ---------- */

.gtg-highlights {
	background: #fff;
	border-bottom: 1px solid #e6e7ea;
	font-size: 14px;
}

.gtg-highlights__inner {
	display: flex;
	align-items: stretch;
	min-height: 40px;
}

.gtg-highlights__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0 16px 0 14px;
	margin-right: 18px;
	background: var(--gtg-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

/* Arrow tip on the label box. */
.gtg-highlights__label::after {
	content: "";
	position: absolute;
	top: 0;
	right: -12px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 20px 0 20px 12px;
	border-color: transparent transparent transparent var(--gtg-accent);
}

.gtg-highlights__feed {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 30px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 30px), transparent 100%);
}

.gtg-highlights .gtg-marquee__list li {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.gtg-highlights .gtg-marquee__list li + li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 18px;
	border-radius: 50%;
	background: var(--gtg-accent);
}

.gtg-highlights a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.gtg-highlights a:hover,
.gtg-highlights a:focus {
	color: var(--gtg-accent);
}

/* ---------- Dark scheme (SmartMag dark mode) ---------- */

.s-dark .gtg-topbar,
html.s-dark .gtg-topbar {
	background: #17181b;
	color: #e3e4e6;
	border-color: rgba(255, 255, 255, .06);
}

.s-dark .gtg-topbar__wx,
.s-dark .gtg-wx + .gtg-wx,
html.s-dark .gtg-topbar__wx,
html.s-dark .gtg-wx + .gtg-wx {
	border-color: #3a3c42;
}

.s-dark .gtg-highlights,
html.s-dark .gtg-highlights {
	background: #1f2024;
	color: #e3e4e6;
	border-color: #2e3035;
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.gtg-topbar {
		font-size: 12px;
	}

	.gtg-topbar__inner {
		min-height: 30px;
	}

	/* Mobile: only the day and date. */
	.gtg-topbar__wx,
	.gtg-topbar__time {
		display: none;
	}

	.gtg-highlights {
		font-size: 13px;
	}

	.gtg-highlights__inner {
		min-height: 36px;
	}

	.gtg-highlights__label {
		padding: 0 10px;
		margin-right: 14px;
		font-size: 11px;
	}

	.gtg-highlights__label::after {
		border-width: 18px 0 18px 10px;
		right: -10px;
	}
}

/* ---------- Respect "reduce motion" ---------- */

@media (prefers-reduced-motion: reduce) {
	.gtg-marquee.is-running .gtg-marquee__track {
		animation: none;
	}

	.gtg-marquee {
		overflow-x: auto;
		scrollbar-width: none;
	}

	.gtg-marquee::-webkit-scrollbar {
		display: none;
	}

	.gtg-marquee.is-running .gtg-marquee__list + .gtg-marquee__list {
		display: none;
	}
}

/* ---------- Mobile menu: smaller text, tighter spacing (SmartMag) ---------- */

@media (max-width: 940px) {

	/* Scrolling menu row in the mobile header. */
	.smart-head-mobile .smart-head-scroll-nav,
	.smart-head .navigation-scroll {
		--nav-text: 12px;
		--nav-items-space: 8px;
		--nav-ls: .02em;
		--head-h: 38px;
	}

	.smart-head-mobile .navigation-scroll .menu > li > a {
		font-size: 12px;
		padding: 0 8px;
	}

	/* Slide-out (hamburger) menu. */
	body .off-canvas .mobile-menu {
		font-size: 14px;
	}

	body .off-canvas .mobile-menu li a {
		padding-top: 7px;
		padding-bottom: 7px;
		line-height: 1.4;
	}

	body .off-canvas .mobile-menu li li a {
		font-size: 13px;
		padding-top: 5px;
		padding-bottom: 5px;
	}
}
