/* SVG Live Feed – structure, animation and sensible defaults.
   Colours, typography, spacing and backgrounds are overridden by the Elementor widget's Style controls. */

.svglf {
	--svglf-accent: #178a8c;
	--svglf-live: #e5383b;
	--svglf-ink: #14202b;
	--svglf-muted: #667785;
	--svglf-line: #e3e8ee;
	--svglf-rail: #cfd9e2;
	--svglf-featured: #d49b00;
	--svglf-new: rgba(23, 138, 140, 0.14);
	--svglf-gap: 6px;
	box-sizing: border-box;
	width: 100%;
	color: var(--svglf-ink);
	font-family: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	font-stretch: condensed;
	font-size: 17px;
	line-height: 1.35;
}

.svglf *,
.svglf *::before,
.svglf *::after {
	box-sizing: border-box;
}

.svglf [hidden] {
	display: none !important;
}

.svglf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Reset parent-theme link / button styling inside the feed */
.svglf a,
.svglf a:hover,
.svglf a:focus {
	color: inherit;
	text-decoration: none;
}

.svglf a:focus-visible,
.svglf button:focus-visible {
	outline: 2px solid var(--svglf-accent);
	outline-offset: 2px;
	box-shadow: none;
}

/* ---------- Heading ---------- */
.svglf-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.2rem;
	margin-bottom: 1rem;
}

.svglf-head__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
}

.svglf .svglf-title {
	margin: 0;
	color: inherit;
	font-size: 2.1rem;
	font-weight: 800;
	line-height: 1.1;
}

.svglf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.25em 0.8em;
	border-radius: 999px;
	background-color: var(--svglf-live);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.svglf-badge__dot {
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background-color: #fff;
	animation: svglf-blink 1.6s ease-in-out infinite;
}

@keyframes svglf-blink {
	50% {
		opacity: 0.25;
	}
}

.svglf-status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--svglf-muted);
	font-size: 0.85rem;
}

.svglf .svglf-live-toggle {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--svglf-line);
	border-radius: 50%;
	background-color: #fff;
	color: var(--svglf-muted);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svglf .svglf-live-toggle:hover,
.svglf .svglf-live-toggle:focus {
	background-color: var(--svglf-accent);
	border-color: var(--svglf-accent);
	color: #fff;
}

.svglf-live-toggle__play,
.svglf.is-live-off .svglf-live-toggle__pause {
	display: none;
}

.svglf.is-live-off .svglf-live-toggle__play {
	display: block;
}

.svglf.is-live-off .svglf-badge {
	background-color: var(--svglf-muted);
}

.svglf.is-live-off .svglf-badge__dot {
	animation: none;
}

/* ---------- Tabs ---------- */
.svglf-tabs {
	display: flex;
	gap: 0.5rem;
	margin: 0 0 0.6rem;
	padding-bottom: 0.2rem;
	overflow-x: auto;
	scrollbar-width: none;
}

.svglf-tabs::-webkit-scrollbar {
	display: none;
}

.svglf .svglf-tab {
	flex: none;
	padding: 0.35em 1em;
	border: 1px solid var(--svglf-line);
	border-radius: 999px;
	background-color: transparent;
	color: var(--svglf-ink);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.svglf .svglf-tab:hover,
.svglf .svglf-tab:focus {
	border-color: var(--svglf-accent);
	background-color: transparent;
	color: var(--svglf-accent);
}

.svglf .svglf-tab[aria-pressed="true"] {
	border-color: var(--svglf-accent);
	background-color: var(--svglf-accent);
	color: #fff;
}

/* ---------- Body / day sections ---------- */
.svglf-body {
	position: relative;
	overscroll-behavior: contain;
}

.svglf-day__title {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.2rem 0 0.6rem;
	color: var(--svglf-muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-transform: uppercase;
}

.svglf-day__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--svglf-line);
}

.svglf-day:first-child .svglf-day__title {
	margin-top: 0.4rem;
}

.svglf-items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.svglf-empty,
.svglf-nomatch,
.svglf-end {
	margin: 1.2rem 0;
	color: var(--svglf-muted);
	text-align: center;
}

/* ---------- Item (shared) ---------- */
.svglf-item {
	position: relative;
	display: grid;
	margin: 0;
	padding: 0 0 var(--svglf-gap);
	list-style: none;
}

.svglf-item__time {
	display: block;
	font-size: 1.45rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}

.svglf-item__rel {
	display: block;
	margin-top: 0.15rem;
	color: var(--svglf-muted);
	font-size: 0.78rem;
	line-height: 1.2;
}

.svglf-item__main {
	min-width: 0;
	border-radius: 12px;
}

.svglf-item__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.3rem;
}

.svglf-item__cat {
	padding: 0.1em 0.6em;
	border-radius: 4px;
	background-color: rgba(23, 138, 140, 0.12);
	color: var(--svglf-accent);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.svglf .svglf-item__title {
	margin: 0;
	color: inherit;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.22;
}

.svglf-item__flag {
	color: var(--svglf-accent);
	letter-spacing: 0.03em;
}

.svglf .svglf-item__title a:hover,
.svglf .svglf-item__title a:focus {
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.svglf .svglf-item__desc {
	margin: 0.35rem 0 0;
	color: var(--svglf-muted);
	font-size: 1rem;
}

.svglf-item__more {
	display: inline-block;
	margin-top: 0.45rem;
	color: var(--svglf-accent);
	font-size: 0.92rem;
	font-weight: 700;
}

.svglf a.svglf-item__more:hover,
.svglf a.svglf-item__more:focus {
	color: var(--svglf-accent);
	text-decoration: underline;
}

.svglf-item__star {
	display: inline-flex;
	color: var(--svglf-featured);
}

.svglf-item__star svg {
	width: 1em;
	height: 1em;
}

.svglf-item.is-featured .svglf-item__main {
	padding: 0.7rem 0.95rem;
	background-color: rgba(212, 155, 0, 0.1);
}

/* ---------- Timeline layout ---------- */
.svglf--timeline .svglf-item {
	grid-template-columns: 4.8rem 1.5rem minmax(0, 1fr);
	column-gap: 0.7rem;
	padding-bottom: calc(var(--svglf-gap) + 1.1rem);
}

.svglf--timeline .svglf-item__when {
	grid-column: 1;
	padding-top: 0.12rem;
	text-align: right;
}

.svglf--timeline .svglf-item__dot {
	position: relative;
	z-index: 1;
	grid-column: 2;
	justify-self: center;
	width: 0.95rem;
	height: 0.95rem;
	margin-top: 0.4rem;
	border: 3px solid var(--svglf-accent);
	border-radius: 50%;
	background-color: #fff;
}

.svglf--timeline .svglf-item__main {
	grid-column: 3;
}

/* the rail */
.svglf--timeline .svglf-item::before {
	content: "";
	position: absolute;
	top: 1.1rem;
	bottom: -0.1rem;
	left: calc(4.8rem + 0.7rem + 0.75rem - 1px);
	width: 2px;
	background-color: var(--svglf-rail);
}

.svglf--timeline .svglf-item:last-child::before {
	display: none;
}

.svglf--timeline .svglf-item.is-featured .svglf-item__dot {
	border-color: var(--svglf-featured);
	background-color: var(--svglf-featured);
}

/* newest item: pulsing live dot */
.svglf--timeline .svglf-day:first-child .svglf-item:first-child .svglf-item__dot {
	border-color: var(--svglf-live);
	background-color: var(--svglf-live);
	animation: svglf-ring 2s ease-out infinite;
}

@keyframes svglf-ring {
	0% {
		box-shadow: 0 0 0 0 rgba(229, 56, 59, 0.5);
	}
	70%,
	100% {
		box-shadow: 0 0 0 0.6rem rgba(229, 56, 59, 0);
	}
}

/* ---------- Classic list layout ---------- */
.svglf--list .svglf-item {
	grid-template-columns: 5.4rem minmax(0, 1fr);
	column-gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--svglf-line);
}

.svglf--list .svglf-item:last-child {
	border-bottom: 0;
}

.svglf--list .svglf-item__dot {
	display: none;
}

.svglf--list .svglf-item__when {
	grid-column: 1;
	padding-top: 0.1rem;
}

.svglf--list .svglf-item__time {
	font-weight: 500;
}

.svglf--list .svglf-item__main {
	grid-column: 2;
}

.svglf--list .svglf-item.is-featured .svglf-item__main {
	padding: 0.6rem 0.9rem;
}

/* ---------- Load more ---------- */
.svglf .svglf-more {
	display: block;
	margin: 1.3rem auto 0;
	padding: 0.65em 1.8em;
	border: 2px solid var(--svglf-accent);
	border-radius: 999px;
	background-color: transparent;
	color: var(--svglf-accent);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.svglf .svglf-more:hover,
.svglf .svglf-more:focus {
	background-color: var(--svglf-accent);
	color: #fff;
}

.svglf .svglf-more[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* ---------- New items ---------- */
.svglf-item.is-new .svglf-item__main {
	animation: svglf-new 1.2s ease-out both;
}

.svglf-item.is-new:not(.is-featured) .svglf-item__main {
	padding: 0.7rem 0.95rem;
	background-color: var(--svglf-new);
	transition: background-color 2s ease, padding 0.4s ease;
}

.svglf-item__badge {
	padding: 0.1em 0.55em;
	border-radius: 4px;
	background-color: var(--svglf-live);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.5;
}

@keyframes svglf-new {
	from {
		opacity: 0;
		transform: translateY(-0.8rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svglf *,
	.svglf *::before,
	.svglf *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.svglf .svglf-title {
		font-size: 1.7rem;
	}

	.svglf--timeline .svglf-item {
		grid-template-columns: 3.4rem 1.3rem minmax(0, 1fr);
		column-gap: 0.45rem;
	}

	.svglf--timeline .svglf-item::before {
		left: calc(3.4rem + 0.45rem + 0.65rem - 1px);
	}

	.svglf--timeline .svglf-item__time {
		font-size: 1.15rem;
	}

	.svglf--list .svglf-item {
		grid-template-columns: 4rem minmax(0, 1fr);
		column-gap: 0.7rem;
	}

	.svglf .svglf-item__title {
		font-size: 1.18rem;
	}
}
