/* rn-hubhero.css 1.0.1 — баннер-хиро хабов-анонсов серий (radnews-series-hubhero.php).
   Дизайн = og-hub-карточки серий (canvas 1200×630): кикер моно + амбер-насечка,
   заголовок жирный, амбер-строка «N статей…», тизер, шкала частей (зелёные бары,
   кликабельные), футер с адресом хаба и CTA «Читать серию →».
   Вуаль осветлена по правке юзера 05.12: 0.30 + градиент 0.68/0.40/0.14. */

.rn-hh {
	position: relative;
	overflow: hidden;
	margin: 0 0 28px;
	background: #0e1318;
	border-radius: 8px;
	color: #f2f6fa;
	isolation: isolate;
}
/* ссылки баннера — без подчеркивания (тема: .post-content a { border-bottom }) */
.rn-hh a.rn-hh__seg,
.rn-hh a.rn-hh__cta,
.rn-hh a.rn-hh__seg:hover,
.rn-hh a.rn-hh__cta:hover,
.rn-hh a.rn-hh__seg:focus,
.rn-hh a.rn-hh__cta:focus {
	text-decoration: none;
	border-bottom: 0;
	box-shadow: none;
	color: inherit;
}
.rn-hh a.rn-hh__cta {
	color: #ffb000;
}
.rn-hh__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-repeat: no-repeat;
	filter: saturate(0.85) brightness(1.12);
}
.rn-hh__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(90deg, rgba(14,19,24,0.68) 0%, rgba(14,19,24,0.40) 45%, rgba(14,19,24,0.14) 100%),
		linear-gradient(0deg, rgba(14,19,24,0.30), rgba(14,19,24,0.30));
}
html.rn-light .rn-hh__veil {
	background-image:
		linear-gradient(90deg, rgba(14,19,24,0.60) 0%, rgba(14,19,24,0.32) 45%, rgba(14,19,24,0.08) 100%),
		linear-gradient(0deg, rgba(14,19,24,0.22), rgba(14,19,24,0.22));
}
.rn-hh__in {
	position: relative;
	padding: 34px 38px 24px;
}

/* кикер: амбер-насечка + моно */
.rn-hh__kicker {
	margin: 0;
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #b7c2cd;
}
.rn-hh__kicker::before {
	content: '';
	display: inline-block;
	width: 42px;
	height: 4px;
	margin-right: 12px;
	vertical-align: middle;
	background: #ffb000;
}

/* заголовок и подпись */
.rn-hh__title {
	margin: 12px 0 8px;
	font-family: Lato, Arial, sans-serif;
	font-weight: 900;
	font-size: clamp(26px, 4.2vw, 42px);
	line-height: 1.14;
	color: #f2f6fa;
	text-shadow: 0 1px 8px rgba(5,8,10,0.55);
}
.rn-hh__range {
	margin: 0;
	font-family: Lato, Arial, sans-serif;
	font-weight: 700;
	font-size: 19px;
	color: #ffb000;
	text-shadow: 0 1px 6px rgba(5,8,10,0.5);
}
.rn-hh__teaser {
	margin: 5px 0 0;
	font-size: 15.5px;
	line-height: 1.45;
	color: #d6dde6;
	text-shadow: 0 1px 6px rgba(5,8,10,0.5);
}

/* шкала частей: бары-сегменты, кликабельные; grid с равными ячейками —
   перенос по строкам без растяжения последней */
.rn-hh__scale {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	gap: 12px;
	margin-top: 26px;
}
.rn-hh__scale:has(.rn-hh__seg--min) {
	grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
}
.rn-hh__seg {
	display: block;
	min-width: 0;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.rn-hh__bar {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: #5dd39e;
	margin-bottom: 9px;
	transition: background 0.2s ease, transform 0.2s ease;
}
.rn-hh__num {
	display: block;
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
	font-size: 12.5px;
	font-weight: 700;
	color: #f2f6fa;
}
.rn-hh__t {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.35;
	color: #cfd6de;
}
a.rn-hh__seg:hover .rn-hh__bar,
a.rn-hh__seg:focus-visible .rn-hh__bar {
	background: #8ceebc;
	transform: translateY(-1px);
}
a.rn-hh__seg:hover .rn-hh__num {
	color: #ffb000;
}
a.rn-hh__seg:focus-visible {
	outline: 2px solid #35c3ff;
	outline-offset: 3px;
	border-radius: 4px;
}
.rn-hh__seg--todo .rn-hh__bar {
	background: #3d4854;
}
.rn-hh__seg--todo .rn-hh__num {
	color: #8b95a0;
}
.rn-hh__seg--todo .rn-hh__t {
	color: #6d7883;
	font-style: italic;
}

/* строка источника и футер */
.rn-hh__cap {
	margin: 10px 0 0;
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #9aa6b1;
}
.rn-hh__foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 22px 0 0;
}
.rn-hh__url {
	font-family: 'JetBrains Mono', Consolas, Menlo, monospace;
	font-size: 13px;
	color: #cfd6de;
}
.rn-hh__cta {
	font-family: Lato, Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: #ffb000;
	text-decoration: none;
}
.rn-hh__arr {
	display: inline-block;
	transition: transform 0.2s ease;
}
.rn-hh__cta:hover .rn-hh__arr,
.rn-hh__cta:focus-visible .rn-hh__arr {
	transform: translateX(4px);
}
.rn-hh__cta:focus-visible {
	outline: 2px solid #35c3ff;
	outline-offset: 3px;
	border-radius: 4px;
}

/* скрыть стандартную post-image хаба (баннер заменяет ее) */
body.rn-hh-on .post-image {
	display: none !important;
}

/* адаптив */
@media (max-width: 720px) {
	.rn-hh__in {
		padding: 24px 20px 18px;
	}
	.rn-hh__title {
		font-size: clamp(23px, 6.4vw, 30px);
	}
	.rn-hh__range {
		font-size: 16.5px;
	}
	.rn-hh__scale {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.rn-hh__scale:has(.rn-hh__seg--min) {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.rn-hh__bar,
	.rn-hh__arr {
		transition: none;
	}
}
