/*
 * RC LinkedIn Feed. Theme it by overriding the custom properties on .rclf, for example:
 *   .rclf { --rclf-accent: #b5121b; --rclf-radius: 4px; }
 * Fonts are inherited from the theme.
 */
.rclf {
	--rclf-bg: #fff;
	--rclf-fg: #1d2226;
	--rclf-muted: #5e6b75;
	--rclf-border: #e3e6e8;
	--rclf-accent: #0a66c2;
	--rclf-accent-fg: #fff;
	--rclf-media-bg: #f3f4f5;
	--rclf-radius: 12px;
	--rclf-gap: 24px;
	--rclf-pad: 20px;
	--rclf-shadow: 0 1px 2px rgba(16, 24, 40, .06);
	--rclf-shadow-hover: 0 8px 24px rgba(16, 24, 40, .10);
	--rclf-media-ratio: 1 / 1;
	--rclf-cols: 3;
	--rclf-clamp: 5;
	container-type: inline-size;
	color: var(--rclf-fg);
	margin: 0 0 var(--rclf-gap);
}
.rclf *,
.rclf *::before,
.rclf *::after { box-sizing: border-box; }

.rclf .screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute; width: 1px; word-wrap: normal !important;
}

.rclf-title { margin: 0 0 16px; }

/* Header */
.rclf-header {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	margin-bottom: var(--rclf-gap);
}
.rclf .rclf-header__logo { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; background: var(--rclf-bg); border: 1px solid var(--rclf-border); }
.rclf-header__text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.rclf .rclf-header__name { font-weight: 700; font-size: 1.125em; line-height: 1.3; color: inherit; text-decoration: none; }
.rclf .rclf-header__name:hover { text-decoration: underline; }
.rclf-header__meta { color: var(--rclf-muted); font-size: .875em; }
.rclf-follow {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px;
	background: var(--rclf-accent); color: var(--rclf-accent-fg) !important;
	font-weight: 600; font-size: .9375em; line-height: 1; text-decoration: none !important;
	transition: filter .15s ease, transform .15s ease;
}
.rclf-follow:hover { filter: brightness(1.1); }
.rclf-follow:active { transform: translateY(1px); }
.rclf-follow .rclf-icon { width: 18px; height: 18px; }

/* Images: scoped to .rclf so page builder resets (Elementor's .elementor img sets
   border-radius:0, border:none, height:auto) do not flatten logos or stretch media. */

/* Layouts */
.rclf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rclf-gap); }
.rclf-item { margin: 0; padding: 0; min-width: 0; display: flex; }
.rclf-item::before, .rclf-item::marker { content: none; }

.rclf--grid .rclf-list { grid-template-columns: repeat(var(--rclf-cols), minmax(0, 1fr)); align-items: stretch; }
.rclf--list .rclf-list { grid-template-columns: minmax(0, 1fr); max-width: 680px; }

.rclf--carousel .rclf-viewport {
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scrollbar-width: thin; outline-offset: 4px;
	/* Room for card borders and hover shadows, which overflow would otherwise clip. */
	padding: 6px 4px 14px; margin: -6px -4px 0; scroll-padding-inline: 4px;
}
.rclf--carousel .rclf-list {
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--rclf-cols) - 1) * var(--rclf-gap)) / var(--rclf-cols));
}
.rclf--carousel .rclf-item { scroll-snap-align: start; }
.rclf-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.rclf-nav[hidden] { display: none; }
.rclf button.rclf-nav__btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0;
	border-radius: 50%; border: 1px solid var(--rclf-border); background: var(--rclf-bg); color: var(--rclf-fg);
	box-shadow: none; font: inherit; line-height: 1; letter-spacing: normal; text-transform: none;
	cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
.rclf button.rclf-nav__btn:hover,
.rclf button.rclf-nav__btn:focus { background: var(--rclf-media-bg); color: var(--rclf-fg); }
.rclf button.rclf-nav__btn:disabled { opacity: .4; cursor: default; }
.rclf button.rclf-nav__btn .rclf-icon { width: 22px; height: 22px; }

@container (max-width: 900px) {
	.rclf--grid .rclf-list { grid-template-columns: repeat(min(var(--rclf-cols), 2), minmax(0, 1fr)); }
	.rclf--carousel .rclf-list { grid-auto-columns: calc((100% - var(--rclf-gap)) / 2); }
}
@container (max-width: 560px) {
	/* An element cannot query itself, so set the smaller spacing on its children. */
	.rclf > * { --rclf-gap: 16px; --rclf-pad: 16px; }
	.rclf--grid .rclf-list { grid-template-columns: minmax(0, 1fr); }
	.rclf--carousel .rclf-list { grid-auto-columns: 86%; }
	.rclf-follow { width: 100%; justify-content: center; }
}

/* Card */
.rclf-post {
	display: flex; flex-direction: column; width: 100%;
	background: var(--rclf-bg); border: 1px solid var(--rclf-border); border-radius: var(--rclf-radius);
	box-shadow: var(--rclf-shadow); padding: var(--rclf-pad); gap: 14px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.rclf-post:hover { box-shadow: var(--rclf-shadow-hover); }
.rclf-post__head { display: flex; align-items: center; gap: 10px; }
.rclf .rclf-post__avatar { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--rclf-border); }
.rclf-post__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.rclf-post__author {
	font-weight: 600; font-size: .9375em;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.rclf-post__date { color: var(--rclf-muted) !important; font-size: .8125em; text-decoration: none !important; }
.rclf-post__date:hover { text-decoration: underline !important; }
.rclf-post__brand { color: var(--rclf-accent); display: inline-flex; }
.rclf-post__brand .rclf-icon { width: 20px; height: 20px; }

.rclf-post__text { font-size: .9375em; line-height: 1.55; overflow-wrap: anywhere; }
.rclf-post__text a { color: var(--rclf-accent); text-decoration: none; font-weight: 500; }
.rclf-post__text a:hover { text-decoration: underline; }
.rclf-post__text.is-clamped {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--rclf-clamp);
	line-clamp: var(--rclf-clamp); overflow: hidden;
}
/* Buttons are scoped to .rclf with the element name so a theme's global button styles
   (Elementor kit, Hello reset.css: background, padding, uppercase) cannot restyle them. */
.rclf button.rclf-more {
	align-self: flex-start; width: auto; min-height: 0; margin: -8px 0 0; padding: 0;
	border: 0; border-radius: 0; background: none; box-shadow: none;
	color: var(--rclf-muted); font: inherit; font-size: .875em; font-weight: 600; line-height: 1.4;
	letter-spacing: normal; text-transform: none; text-decoration: none; cursor: pointer;
}
.rclf button.rclf-more:hover,
.rclf button.rclf-more:focus { background: none; color: var(--rclf-accent); text-decoration: underline; }
.rclf button.rclf-more[hidden] { display: none; }

/* Media */
.rclf-media {
	display: grid; gap: 2px; border-radius: calc(var(--rclf-radius) - 4px); overflow: hidden;
	background: var(--rclf-media-bg); text-decoration: none;
	margin: 0 calc(var(--rclf-pad) * -1); border-radius: 0;
}
.rclf-media__cell { position: relative; display: block; overflow: hidden; aspect-ratio: var(--rclf-media-ratio); }
.rclf .rclf-media__cell img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .4s ease; }
.rclf .rclf-media:hover .rclf-media__cell img { transform: scale(1.03); }
.rclf-media--2 { grid-template-columns: 1fr 1fr; }
.rclf-media--3 { grid-template-columns: 1fr 1fr; }
.rclf-media--3 .rclf-media__cell:first-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.rclf-media--4 { grid-template-columns: 1fr 1fr; }
.rclf--list .rclf-media--1 .rclf-media__cell { aspect-ratio: auto; }
.rclf.rclf--list .rclf-media--1 .rclf-media__cell img { height: auto; max-height: 640px; object-fit: contain; }
.rclf-media__play {
	position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%;
	display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff;
	transition: background .15s ease, transform .15s ease;
}
.rclf-media__play .rclf-icon { width: 30px; height: 30px; margin-left: 3px; }
.rclf-media:hover .rclf-media__play { background: var(--rclf-accent); transform: scale(1.06); }
.rclf-media__extra {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.75em; font-weight: 700;
}

.rclf-article {
	display: flex; flex-direction: column; border: 1px solid var(--rclf-border); border-radius: calc(var(--rclf-radius) - 4px);
	overflow: hidden; color: inherit !important; text-decoration: none !important; background: var(--rclf-media-bg);
}
.rclf .rclf-article img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.rclf-article__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.rclf-article__title { font-weight: 600; line-height: 1.35; }
.rclf-article__host { color: var(--rclf-muted); font-size: .8125em; }

.rclf-document {
	display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: calc(var(--rclf-radius) - 4px);
	background: var(--rclf-media-bg); color: inherit !important; text-decoration: none !important; font-weight: 600;
}
.rclf-document .rclf-icon { width: 24px; height: 24px; color: var(--rclf-accent); flex: none; }

/* Footer */
.rclf-post__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto;
	padding-top: 12px; border-top: 1px solid var(--rclf-border); font-size: .8125em; color: var(--rclf-muted);
}
.rclf-counts { display: inline-flex; gap: 14px; }
.rclf-count { display: inline-flex; align-items: center; gap: 5px; }
.rclf-count .rclf-icon { width: 15px; height: 15px; }
.rclf-post__link { color: var(--rclf-accent) !important; font-weight: 600; text-decoration: none !important; margin-left: auto; white-space: nowrap; }
.rclf-post__link:hover { text-decoration: underline !important; }

/* Official embeds */
.rclf-embed { width: 100%; border: 0; border-radius: var(--rclf-radius); background: var(--rclf-bg); display: block; }

.rclf a:focus-visible,
.rclf button:focus-visible,
.rclf-viewport:focus-visible { outline: 2px solid var(--rclf-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.rclf *, .rclf *::before, .rclf *::after { transition: none !important; }
	.rclf--carousel .rclf-viewport { scroll-behavior: auto; }
}

/* Admin-only note when nothing can be shown yet. */
.rclf-admin-note {
	border: 1px dashed #c3c4c7; border-left: 4px solid #dba617; background: #fcf9e8;
	padding: 12px 16px; margin: 0 0 16px; font-size: 14px; color: #1d2327;
}

/* Browsers without container queries (Chrome < 105, Safari < 16, Firefox < 110): one column on small screens. */
@supports not (container-type: inline-size) {
	@media (max-width: 600px) {
		.rclf--grid .rclf-list { grid-template-columns: minmax(0, 1fr); }
	}
}
