.rhn-widget,
.rhn-widget * {
	box-sizing: border-box;
}

.rhn-widget {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: var(--rhn-height, 560px);
	min-height: 240px;
	margin: 0;
	overflow: hidden;
	color: var(--rhn-text, #151515);
	font-family: var(--rhn-body-font, inherit);
	background: var(--rhn-bg, #fff);
	border: 1px solid var(--rhn-divider, #e5e7eb);
	border-radius: var(--rhn-radius, 14px);
	isolation: isolate;
}

.rhn-widget.rhn-height-mode--elementor {
	height: var(--rhn-elementor-height, var(--rhn-height, 560px));
	min-height: var(--rhn-min-height, 320px);
	max-height: var(--rhn-max-height, none);
}

.rhn-widget.rhn-height-mode--elementor.is-rhn-mobile-fallback {
	height: min(var(--rhn-mobile-height, 520px), 72vh);
	min-height: min(var(--rhn-mobile-height, 520px), 380px);
	max-height: none;
}

.rhn-widget button,
.rhn-widget a {
	font: inherit;
}

.rhn-widget__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 11px;
	min-height: 58px;
	padding: 14px 18px;
	background: var(--rhn-header-bg, var(--rhn-bg, #fff));
	border-bottom: 1px solid var(--rhn-divider, #e5e7eb);
	z-index: 5;
}

.rhn-widget__title {
	margin: 0;
	padding: 0;
	color: var(--rhn-title, var(--rhn-text, #151515));
	font-family: var(--rhn-heading-font, inherit);
	font-size: var(--rhn-block-title-size, 20px);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.rhn-live-dot {
	position: relative;
	display: inline-block;
	flex: 0 0 var(--rhn-dot-size, 10px);
	width: var(--rhn-dot-size, 10px);
	height: var(--rhn-dot-size, 10px);
	background: var(--rhn-dot, #ef4444);
	border-radius: 50%;
}

.rhn-live-dot::after {
	position: absolute;
	inset: 0;
	content: "";
	background: var(--rhn-dot, #ef4444);
	border-radius: inherit;
	animation: rhn-live-pulse var(--rhn-pulse-speed, 1800ms) ease-out infinite;
	z-index: -1;
}

@keyframes rhn-live-pulse {
	0% {
		opacity: 0.55;
		transform: scale(1);
	}
	70%,
	100% {
		opacity: 0;
		transform: scale(2.35);
	}
}

.rhn-widget__viewport {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.rhn-widget__track {
	display: grid;
	grid-template-columns: 100% 100%;
	width: 100%;
	height: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform var(--rhn-motion, 260ms) cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.rhn-widget.is-detail-open .rhn-widget__track {
	transform: translate3d(-100%, 0, 0);
}

.rhn-panel {
	position: relative;
	width: 100%;
	min-width: 0;
	min-height: 0;
	background: var(--rhn-bg, #fff);
}

.rhn-panel--detail {
	display: flex;
	flex-direction: column;
}

.rhn-panel__scroller {
	position: relative;
	height: 100%;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.rhn-panel__scroller::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.rhn-panel__scroller:focus-visible {
	outline: 2px solid var(--rhn-accent, #2563eb);
	outline-offset: -3px;
}

.rhn-news-list {
	--rhn-list-gutter: 17px;
	margin: 0;
	padding: 0 var(--rhn-list-gutter);
}

.rhn-news-item {
	margin: 0 calc(-1 * var(--rhn-list-gutter));
	padding: 0 var(--rhn-list-gutter);
	border-bottom: 1px solid var(--rhn-divider, #e5e7eb);
	transition: background-color 160ms ease;
}

.rhn-news-item:last-child {
	border-bottom: 0;
}

.rhn-news-item__button {
	display: block;
	width: calc(100% + (2 * var(--rhn-list-gutter)));
	margin: 0 calc(-1 * var(--rhn-list-gutter));
	padding: 17px var(--rhn-list-gutter) 0;
	color: inherit;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 0 !important;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: none;
}

.rhn-news-item:hover,
.rhn-news-item:focus-within {
	background: var(--rhn-hover, #f7f7f8);
}

.rhn-news-item__button:focus-visible {
	outline: 2px solid var(--rhn-accent, #2563eb);
	outline-offset: -2px;
}

.rhn-news-meta {
	font-family: var(--rhn-body-font, inherit);
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	margin: 0 0 8px;
	color: var(--rhn-muted, #71717a);
	font-size: var(--rhn-meta-size, 11px);
	font-weight: 650;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.rhn-news-meta time {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.58em;
	font-variant-numeric: tabular-nums;
}

.rhn-meta-part {
	display: inline-flex;
	align-items: center;
	gap: 0.28em;
	min-width: 0;
}

.rhn-meta-part--date {
	font-weight: 750;
}

.rhn-date-label--yesterday {
	color: var(--rhn-yesterday, #d97706);
}

.rhn-date-label--date {
	color: var(--rhn-date, #7c3aed);
}

.rhn-meta-icon {
	display: inline-flex;
	flex: 0 0 var(--rhn-meta-icon-size, 11px);
	align-items: center;
	justify-content: center;
	width: var(--rhn-meta-icon-size, 11px);
	height: var(--rhn-meta-icon-size, 11px);
	line-height: 0;
}

.rhn-meta-icon svg,
.rhn-meta-icon img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.rhn-meta-icon svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rhn-meta-icon img {
	object-fit: contain;
}

.rhn-meta-separator {
	flex: 0 0 auto;
	opacity: 0.7;
}

.rhn-tags {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
	flex-wrap: wrap;
}

.rhn-tag {
	font-family: var(--rhn-body-font, inherit);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	max-width: 100%;
	min-height: calc(var(--rhn-tag-size, 10px) + 8px);
	padding: 0 7px;
	color: var(--rhn-tag-text, #3730a3);
	font-size: var(--rhn-tag-size, 10px);
	font-weight: 750;
	line-height: 1;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	white-space: nowrap;
	vertical-align: middle;
	background: var(--rhn-tag-bg, #eef2ff);
	border-radius: var(--rhn-tag-radius, 999px);
}

.rhn-tag__emoji,
.rhn-tag__text {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 1em;
	margin: 0;
	padding: 0;
	line-height: 1;
	vertical-align: middle;
}

.rhn-tag__emoji {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 1.05em;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.rhn-news-item__title {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--rhn-news-title, var(--rhn-text, #151515));
	font-family: var(--rhn-heading-font, inherit);
	font-size: var(--rhn-news-title-size, 15px);
	font-weight: 750;
	line-height: 1.38;
	letter-spacing: -0.012em;
}

.rhn-pin {
	display: inline-block;
	margin-right: 5px;
	color: var(--rhn-accent, #2563eb);
	font-size: 8px;
	vertical-align: 2px;
}

.rhn-news-item__preview {
	font-family: var(--rhn-body-font, inherit);
	display: -webkit-box;
	margin: 7px 0 0;
	overflow: hidden;
	color: var(--rhn-muted, #71717a);
	font-size: var(--rhn-preview-size, 13px);
	font-weight: 400;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--rhn-preview-lines, 3);
}

.rhn-news-item__footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 17px;
	margin: 9px 0 0;
	padding-bottom: 15px;
	color: var(--rhn-muted, #71717a);
	font-size: 12px;
}

.rhn-news-item__video {
	position: relative;
	width: 100%;
	margin: 12px 0 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 9px;
}

.rhn-news-item__video iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
}


.rhn-open-arrow {
	color: var(--rhn-accent, #2563eb);
	font-size: 17px;
	line-height: 1;
	transform: translateX(0);
	transition: transform 160ms ease;
}

.rhn-news-item:hover .rhn-open-arrow,
.rhn-news-item:focus-within .rhn-open-arrow {
	transform: translateX(3px);
}

.rhn-empty-state {
	margin: 0;
	padding: 34px 20px;
	color: var(--rhn-muted, #71717a);
	font-size: 14px;
	line-height: 1.55;
	text-align: center;
}

.rhn-detail-toolbar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	min-height: 48px;
	padding: 7px 12px;
	background: var(--rhn-bg, #fff);
	border-bottom: 1px solid var(--rhn-divider, #e5e7eb);
	z-index: 4;
}

.rhn-back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	padding: 5px 8px;
	color: var(--rhn-back, var(--rhn-accent, #2563eb));
	font-size: var(--rhn-back-link-size, 13px);
	font-weight: 700;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.rhn-back-button:hover {
	background: var(--rhn-hover, #f7f7f8);
}

.rhn-back-button:focus-visible {
	outline: 2px solid var(--rhn-back, var(--rhn-accent, #2563eb));
	outline-offset: 1px;
}

.rhn-detail-scroller {
	flex: 1 1 auto;
	height: auto;
}

.rhn-detail-content {
	min-height: 100%;
	padding: 19px 18px 28px;
}

.rhn-detail-meta {
	margin-bottom: 10px;
}

.rhn-detail-title {
	margin: 0 0 16px;
	padding: 0;
	color: var(--rhn-news-title, var(--rhn-text, #151515));
	font-family: var(--rhn-heading-font, inherit);
	font-size: var(--rhn-detail-title-size, 22px);
	font-weight: 800;
	line-height: 1.28;
	letter-spacing: -0.025em;
}

.rhn-detail-featured-image {
	margin: 0 0 18px;
	padding: 0;
}

.rhn-detail-featured-image img,
.rhn-detail-body img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 9px;
}

.rhn-detail-body {
	font-family: var(--rhn-body-font, inherit);
	color: var(--rhn-detail-text, var(--rhn-text, #151515));
	font-size: var(--rhn-detail-text-size, 14px);
	line-height: 1.66;
	overflow-wrap: anywhere;
}

.rhn-detail-body :where(p, li, blockquote, figcaption) {
	color: inherit;
}

/*
 * WordPress themes and global block styles often reset paragraph margins.
 * Keep editor paragraphs visibly separated inside the news detail.
 */
.rhn-detail-body p {
	margin-top: 0 !important;
	margin-bottom: 1.15em !important;
}

.rhn-detail-body > :first-child {
	margin-top: 0;
}

.rhn-detail-body > :last-child,
.rhn-detail-body p:last-child {
	margin-bottom: 0 !important;
}

.rhn-detail-body h1,
.rhn-detail-body h2,
.rhn-detail-body h3,
.rhn-detail-body h4 {
	color: inherit;
	line-height: 1.3;
}

.rhn-detail-body a {
	color: var(--rhn-accent, #2563eb);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rhn-detail-body iframe,
.rhn-detail-body video,
.rhn-detail-body embed,
.rhn-detail-body object {
	display: block;
	max-width: 100%;
	margin-inline: auto;
}

.rhn-detail-body iframe {
	width: 100%;
	border: 0;
}

.rhn-detail-body .wp-block-embed__wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 9px;
}

.rhn-detail-body .wp-has-aspect-ratio .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.rhn-detail-body .wp-has-aspect-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.rhn-detail-body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.rhn-source-link-wrap {
	margin: 22px 0 0;
}

.rhn-source-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 12px;
	color: #fff !important;
	font-size: var(--rhn-source-link-size, 13px);
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	background: var(--rhn-accent, #2563eb);
	border-radius: 9px;
}

.rhn-source-link:hover {
	filter: brightness(0.95);
}

.rhn-scroll-cue {
	position: absolute;
	left: 0;
	right: 0;
	height: 34px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 160ms ease;
	z-index: 3;
}

.rhn-scroll-cue--top {
	top: 0;
	background: linear-gradient(to bottom, rgba(var(--rhn-bg-rgb, 255, 255, 255), 0.98), rgba(var(--rhn-bg-rgb, 255, 255, 255), 0));
}

.rhn-panel--detail .rhn-scroll-cue--top {
	top: 48px;
}

.rhn-scroll-cue--bottom {
	bottom: 0;
	background: linear-gradient(to top, rgba(var(--rhn-bg-rgb, 255, 255, 255), 0.98), rgba(var(--rhn-bg-rgb, 255, 255, 255), 0));
}

.rhn-has-gradients .rhn-panel.can-scroll-up .rhn-scroll-cue--top,
.rhn-has-gradients .rhn-panel.can-scroll-down .rhn-scroll-cue--bottom {
	opacity: 1;
}

@media (max-width: 600px) {
	.rhn-widget.rhn-height-mode--fixed {
		height: min(var(--rhn-height, 560px), 72vh);
		min-height: 380px;
	}

	.rhn-widget__header {
		padding-inline: 15px;
	}

	.rhn-news-list {
		--rhn-list-gutter: 14px;
	}

	.rhn-detail-content {
		padding-inline: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rhn-widget__track,
	.rhn-open-arrow,
	.rhn-news-item,
	.rhn-news-item__button,
	.rhn-scroll-cue {
		transition-duration: 0.01ms !important;
	}

	.rhn-live-dot::after {
		animation: none;
	}
}
