/* ==========================================================================
   RF SPIN · Novinky 2026 — detail novinky a výpis /news-and-updates/
   (inc/28-news-2026.php, page-templates/single-news-2026.php)

   Markup = třídy provocado-blocks; tady je jen to, co plugin zatím nemá.
   [PLUGIN?] = kandidát na přesun do provocado-blocks (zadání kap. 6).
   Tokeny (--rfs-*) jsou z pluginu a rfspin-skin.css, žádné vlastní hodnoty barev.
   ========================================================================== */

/* 1. Kontejnery vypsané z PHP nemají post CSS, které Elementor píše každému
      kontejneru: tytéž proměnné jako na stránkách z editoru. */
.elementor .rfs-news-gen {
	--display: flex;
	--flex-direction: column;
	--container-widget-width: 100%;
	--container-widget-height: initial;
	--container-widget-flex-grow: 0;
	--container-widget-align-self: initial;
	--flex-wrap-mobile: wrap;
}

/* 2. Výchozí odsazení sekcí dává plugin jen dokumentu s .rfs-block; detail bez
      úvodního bloku a produktů žádný nemá, proto tytéž hodnoty pro obal detailu. */
:where(.elementor.rfs-news) .e-con-boxed.e-parent {
	--padding-top: var(--rfs-section-pad);
	--padding-bottom: var(--rfs-section-pad);
	--padding-left: var(--rfs-gutter);
	--padding-right: var(--rfs-gutter);
	--gap: var(--rfs-space-lg);
	--row-gap: var(--rfs-space-lg);
	--column-gap: var(--rfs-space-lg);
}
:where(.elementor.rfs-news) .e-con.rfs-section--hero {
	--padding-top: var(--rfs-hero-pad-top);
	--padding-bottom: var(--rfs-hero-pad-bottom);
	--padding-left: var(--rfs-gutter);
	--padding-right: var(--rfs-gutter);
}

/* 3. Hero detailu: pozadí jako hero stránky Newsletter (obrázek jako překryv
      přes tmavou barvu z rfs-section--hero-bg). */
.elementor .rfs-news-hero { --overlay-opacity: 1; }
.elementor .rfs-news-hero::before {
	--background-overlay: '';
	background-image: url("/wp-content/uploads/2026/06/bg-new-work.png");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: scroll;
}

/* 4. [PLUGIN?] Drobeček na místě eyebrow v prvku Hero (kolekce mají drobeček,
      rozhodnuto 6. 10.). Sentence case 13/500, ne rodina eyebrow. Končí rodičem. */
.elementor .rfs-hero .rfs-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	font: 500 13px/1.5 var(--rfs-font);
	color: var(--rfs-border);
}
.elementor .rfs-hero .rfs-breadcrumb li { display: inline-flex; align-items: center; }
.elementor .rfs-hero .rfs-breadcrumb li + li::before {
	content: '';
	width: 6px;
	height: 6px;
	margin: 0 12px 0 9px;
	opacity: .55;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.elementor .rfs-hero .rfs-breadcrumb a { color: inherit; text-decoration: none; }
.elementor .rfs-hero .rfs-breadcrumb a:hover { color: var(--rfs-white); text-decoration: underline; text-underline-offset: 3px; }
/* datum ve volném slotu hero: Micro na tmavé */
.elementor .rfs-hero .rfs-news-date { margin: 0; color: var(--rfs-border); }

/* 5. [PLUGIN?] Sloupec textu článku (šířka čtení 760) a typografie textu. */
.elementor .rfs-news-col { width: 100%; max-width: 760px; }
.elementor .rfs-news-col--small { max-width: 380px; }
.elementor .rfs-news-prose {
	display: flex;
	flex-direction: column;
	gap: 20px;
	font: 400 18px/1.65 var(--rfs-font);
	color: var(--rfs-text);
}
.elementor .rfs-news-prose > * { margin: 0; }
.elementor .rfs-news-prose > h2.t-h-md { margin: 0; color: var(--rfs-dark); text-wrap: balance; }
.elementor .rfs-news-prose > h2.t-h-md:not(:first-child) { margin-top: 12px; }
.elementor .rfs-news-prose > h2::before,
.elementor .rfs-news-prose > h2::after { content: none; display: none; }
.elementor .rfs-news-prose p { text-wrap: pretty; }
.elementor .rfs-news-prose strong { font-weight: 600; }
.elementor .rfs-news-prose a { color: var(--rfs-primary); text-decoration: underline; text-underline-offset: 3px; }
.elementor .rfs-news-prose ul,
.elementor .rfs-news-prose ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.elementor .rfs-news-prose li::marker { color: var(--rfs-primary); }
.elementor .rfs-news-prose blockquote {
	margin: 0;
	padding: 2px 0 2px 20px;
	border-left: 3px solid var(--rfs-primary);
	background: none;
	box-shadow: none;
	font: italic 400 18px/1.65 var(--rfs-font);
	color: var(--rfs-dark);
}
.elementor .rfs-news-prose .rfs-news-note { font: 400 14px/1.6 var(--rfs-font); color: var(--rfs-muted); }
.elementor .rfs-news-prose img { max-width: 100%; height: auto; vertical-align: middle; }
.elementor .rfs-news-prose img.alignleft { float: left; margin: 4px 14px 4px 0; }
.elementor .rfs-news-prose img.alignright { float: right; margin: 4px 0 4px 14px; }
.elementor .rfs-news-prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.elementor .rfs-news-prose :is(td, th) { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rfs-border); text-align: left; vertical-align: top; }
.elementor .rfs-news-embed { position: relative; aspect-ratio: 16 / 9; }
.elementor .rfs-news-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 6. [PLUGIN?] Řádek parametrů produktu ve Stage (dnes jen ve Strip). */
.elementor .rfs-block--stage .product-spec { font: 600 14px/1.6 var(--rfs-font); color: var(--rfs-dark); margin: 0; }
.elementor .rfs-block--stage .rfs-block__body > .rfs-link-row { padding-top: var(--rfs-space-sm); }

/* 7. [PLUGIN?] Skupina s hlavou VEDLE obsahu (Group Head „Beside“): od 1025 px má
      hlava čtvrtinu řádku a drží se v zorném poli (85 = hlavička 61 + 24).
      Váha (0,5,0): display typu Stack je :is(…) s (0,4,0). */
@media (min-width: 1025px) {
	.elementor .e-con.e-con-full.rfs-stack.rfs-news-group {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
		column-gap: var(--rfs-space-md);
		align-items: start;
	}
	.elementor .rfs-news-group > .rfs-group-head { position: sticky; top: 85px; }
	/* Měsíc článku, který dojel k linii roku: stejná velikost, řez 400, tlumeně. */
	.elementor .rfs-news-group > .rfs-group-head:has(.rfs-news-month) { flex-direction: row; align-items: baseline; gap: 12px; }
	.elementor .rfs-news-month { font: 400 25px/1.3 var(--rfs-font); letter-spacing: -.3px; color: var(--rfs-muted); white-space: nowrap; }
	.elementor .rfs-news-month.is-swap { animation: rfs-news-month-in .26s ease-out; }
}
@keyframes rfs-news-month-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .elementor .rfs-news-month.is-swap { animation: none; } }
/* pod 1025 px hlava není lepkavá (stojí nad seznamem), měsíc nemá co sledovat */
@media (max-width: 1024px) { .elementor .rfs-news-month { display: none; } }

/* 8. [PLUGIN?] Container type „Media list“: Media Itemy pod sebou jako v těle bloku
      (sloupec, 10 px), linka a 24 / 24 položky pak vyjdou přesně. */
.elementor .e-con.rfs-news-list {
	--gap: var(--rfs-block-body-gap, 10px);
	--row-gap: var(--rfs-block-body-gap, 10px);
	display: flex;
	flex-direction: column;
}

/* 9. [PLUGIN?] Celý řádek / karta je odkaz: odkaz titulku roztažený přes řádek
      (vzor Chapter Card), při najetí podtržený titulek. */
.elementor .rfs-news-row,
.elementor .rfs-block--stage:has(.rfs-news-stretch) { position: relative; }
.elementor a.rfs-news-stretch { color: inherit; text-decoration: none; }
.elementor a.rfs-news-stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.elementor .rfs-news-row:hover a.rfs-news-stretch,
.elementor .rfs-block--stage:hover a.rfs-news-stretch { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.elementor a.rfs-news-stretch:focus-visible { outline: none; }
.elementor .rfs-news-row:has(a.rfs-news-stretch:focus-visible),
.elementor .rfs-block--stage:has(a.rfs-news-stretch:focus-visible) { outline: 2px solid var(--rfs-primary); outline-offset: 4px; }

/* 10. Widget toku na výpisu: skupiny roků pod sebou s mezerou sekce (jako děti sekce). */
.elementor .rfs-news-stream { display: flex; flex-direction: column; gap: var(--rfs-space-lg); }

/* 11. [PLUGIN — oprava] Photo Cell přímo v kontejneru má na mobilu výšku 0
       (container-type: inline-size + flex-wrap: wrap, který Elementor dává
       kontejnerům pod 768 px). */
.elementor .rfs-news-gen > .rfs-photo-cell { width: 100%; }
