/**
 * Reporter Note — front-end feed and single/archive styles.
 */

 :root {
	--rn-bg: #f7f5f2;
	--rn-surface: #ffffff;
	--rn-ink: #1a1a1a;
	--rn-muted: #5c5c5c;
	--rn-rule: #e2ddd6;
	--rn-accent: #0b3d4a;
	--rn-accent-soft: #e8f1f3;
	/*
	 * Pick up inewsource / Newspack faces from Additional CSS @font-face
	 * (Graphik + Lyon Text) via theme tokens when present.
	 */
	--rn-font-ui: var(
		--newspack-theme-font-heading,
		"Graphik",
		Helvetica,
		Arial,
		sans-serif
	);
	--rn-font-body: var(
		--newspack-theme-font-body,
		"Lyon Text",
		Georgia,
		"Times New Roman",
		serif
	);
	--rn-font-sans: var(--rn-font-ui);
	--rn-font-display: var(--rn-font-ui);
	--rn-radius: 2px;
	--rn-space: 1rem;
}

.rn-feed,
.rn-single,
.rn-archive {
	font-family: var(--rn-font-sans);
	color: var(--rn-ink);
	line-height: 1.5;
}

.rn-feed {
	position: relative;
	background:
		linear-gradient(180deg, var(--rn-accent-soft) 0, transparent 7rem),
		var(--rn-bg);
	padding: 1.25rem 1rem 1.5rem;
	border: 1px solid var(--rn-rule);
	max-width: 28rem;
}

.rn-feed--archive {
	max-width: 40rem;
	margin: 0 auto;
	background: transparent;
	border: 0;
	padding: 0;
}

.rn-feed__heading {
	font-family: var(--rn-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	color: var(--rn-accent);
}

.rn-feed__new-wrap {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	margin: -0.35rem 0 0.85rem;
}

.rn-feed__new-wrap[hidden] {
	display: none;
}

.rn-feed__new {
	appearance: none;
	border: 1px solid var(--rn-accent);
	background: var(--rn-accent);
	color: #fff;
	font-family: var(--rn-font-ui);
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.2;
	padding: 0.4rem 0.85rem;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(11, 61, 74, 0.18);
}

.rn-feed__new:hover,
.rn-feed__new:focus {
	background: #082e38;
	border-color: #082e38;
	color: #fff;
}

.rn-feed__new:focus-visible {
	outline: 2px solid var(--rn-accent);
	outline-offset: 2px;
}

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

.rn-feed__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.rn-feed__list--scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

.rn-feed__footer {
	margin-top: 0.35rem;
}

/*
 * Text-style control — keep accent ink on every state so theme link/button
 * rules cannot flip hover to black background / white (or black) label text.
 */
.rn-feed .rn-feed__more,
.rn-feed .rn-feed__more:link,
.rn-feed .rn-feed__more:visited,
.rn-feed .rn-feed__more:hover,
.rn-feed .rn-feed__more:focus,
.rn-feed .rn-feed__more:focus-visible,
.rn-feed .rn-feed__more:active {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.85rem 0 0.15rem;
	border: 0;
	border-top: 1px solid var(--rn-rule);
	border-radius: 0;
	background: transparent !important;
	font-family: var(--rn-font-sans);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--rn-accent) !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.rn-feed .rn-feed__more:hover,
.rn-feed .rn-feed__more:focus-visible {
	background: transparent !important;
	color: var(--rn-accent) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--rn-accent) !important;
}

.rn-feed .rn-feed__more:focus-visible {
	outline: 2px solid var(--rn-accent);
	outline-offset: 2px;
}

.rn-feed .rn-feed__more:disabled,
.rn-feed .rn-feed__more:disabled:hover {
	opacity: 0.55;
	cursor: wait;
	background: transparent !important;
	color: var(--rn-accent) !important;
	text-decoration: none !important;
}

.rn-feed__empty {
	margin: 0;
	color: var(--rn-muted);
	font-size: 0.95rem;
}

.rn-feed-item {
	padding: 1rem 0;
	border-bottom: 1px solid var(--rn-rule);
	animation: rn-fade-in 0.35s ease;
}

.rn-feed-item:first-child {
	padding-top: 0;
}

.rn-feed-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.rn-feed__list--scroll .rn-feed-item:last-child {
	border-bottom: 1px solid var(--rn-rule);
	padding-bottom: 1rem;
}

.rn-feed-item--new {
	animation: rn-slide-in 0.4s ease;
}

.rn-feed-item--pinned {
	border-bottom-color: var(--rn-rule);
}

.rn-feed-item__pinned {
	display: inline-block;
	margin-right: 0.35em;
	font-family: var(--rn-font-ui);
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rn-accent);
}

@media (prefers-reduced-motion: reduce) {
	.rn-feed-item--new {
		animation: none;
	}
}

@keyframes rn-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes rn-slide-in {
	from {
		opacity: 0;
		transform: translateY(-0.5rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rn-feed-item__header {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.55rem;
}

.rn-feed-item__avatar,
.rn-single__avatar {
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.rn-single__avatar-link {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.rn-feed-item__avatar {
	width: 40px;
	height: 40px;
}

.rn-feed-item__meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	line-height: 0.7;
	min-width: 0;
	flex: 1;
}

.rn-feed-item__author {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
}

.rn-feed-item__reply,
.rn-single__reply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex-shrink: 0;
	margin-left: auto;
	align-self: center;
	font-family: var(--rn-font-ui);
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1;
	letter-spacing: 0.01em;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--rn-accent);
	background: transparent;
	color: var(--rn-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rn-feed .rn-feed-item__reply,
.rn-feed .rn-feed-item__reply:link,
.rn-feed .rn-feed-item__reply:visited,
.rn-feed .rn-feed-item__reply:hover,
.rn-feed .rn-feed-item__reply:focus,
.rn-feed .rn-feed-item__reply:active,
.rn-single .rn-single__reply,
.rn-single .rn-single__reply:link,
.rn-single .rn-single__reply:visited,
.rn-single .rn-single__reply:hover,
.rn-single .rn-single__reply:focus,
.rn-single .rn-single__reply:active {
	color: var(--rn-accent) !important;
	text-decoration: none !important;
	/* Keep the full pill outline — do not zero border-bottom (theme link reset). */
	border: 1px solid var(--rn-accent) !important;
	box-shadow: none !important;
	background: transparent !important;
}

.rn-feed .rn-feed-item__reply:hover,
.rn-feed .rn-feed-item__reply:focus-visible,
.rn-single .rn-single__reply:hover,
.rn-single .rn-single__reply:focus-visible {
	background: var(--rn-accent) !important;
	color: #fff !important;
	border-color: var(--rn-accent);
}

.rn-feed .rn-feed-item__reply:focus-visible,
.rn-single .rn-single__reply:focus-visible {
	outline: 2px solid var(--rn-accent);
	outline-offset: 2px;
}

.rn-feed .rn-feed-item__author a,
.rn-feed .rn-feed-item__author a:link,
.rn-feed .rn-feed-item__author a:visited,
.rn-feed .rn-feed-item__author a:hover,
.rn-feed .rn-feed-item__author a:focus,
.rn-feed .rn-feed-item__author a:active,
.rn-feed .rn-feed-item__time-link,
.rn-feed .rn-feed-item__time-link:link,
.rn-feed .rn-feed-item__time-link:visited,
.rn-feed .rn-feed-item__time-link:hover,
.rn-feed .rn-feed-item__time-link:focus,
.rn-feed .rn-feed-item__time-link:active,
.rn-feed .rn-feed-item__title a,
.rn-feed .rn-feed-item__title a:link,
.rn-feed .rn-feed-item__title a:visited,
.rn-feed .rn-feed-item__title a:hover,
.rn-feed .rn-feed-item__title a:focus,
.rn-feed .rn-feed-item__title a:active {
	color: inherit !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.rn-feed-item__time,
.rn-single__time {
	font-size: 0.78rem;
	color: var(--rn-muted);
	letter-spacing: 0.01em;
}

.rn-feed-item__title {
	font-family: var(--rn-font-display);
	font-size: 0.85rem;
	font-weight: 650;
	line-height: 1.3;
	margin: 0 0 0.4rem;
}

.rn-feed-item__body {
	font-family: var(--rn-font-body);
	font-size: 0.75rem;
}

.rn-feed .rn-feed-item__more,
.rn-feed .rn-feed-item__more:link,
.rn-feed .rn-feed-item__more:visited {
	display: inline;
	font-family: var(--rn-font-sans);
	font-size: 0.92rem;
	font-weight: 650;
	color: var(--rn-accent) !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.rn-feed .rn-feed-item__more:hover,
.rn-feed .rn-feed-item__more:focus-visible {
	color: var(--rn-accent) !important;
	text-decoration: underline !important;
	text-decoration-color: var(--rn-accent) !important;
}

.rn-feed .rn-feed-item__more:focus-visible {
	outline: 2px solid var(--rn-accent);
	outline-offset: 2px;
}

.rn-feed-item__body > *:first-child {
	margin-top: 0;
}

.rn-feed-item__body > *:last-child {
	margin-bottom: 0;
}

.rn-feed-item__body p {
	margin: 0 0 0.65rem;
}

.rn-feed-item__body img,
.rn-feed-item__body figure,
.rn-single__content img,
.rn-single__content figure {
	max-width: 100%;
	height: auto;
}

.rn-feed-item__body figure,
.rn-single__content figure {
	margin: 0.75rem 0;
}

.rn-feed-item__body iframe,
.rn-single__content iframe {
	max-width: 100%;
}

.rn-feed-item__body .instagram-media,
.rn-feed-item__body iframe.instagram-media {
	max-width: 100% !important;
	min-width: 0 !important;
}

/* Single note */
.rn-single {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.rn-single__brand {
	margin: 0 0 1rem;
	font-family: var(--rn-font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.rn-single__brand a {
	color: var(--rn-accent);
	text-decoration: none;
}

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

.rn-single__header {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.25rem;
}

.rn-single__meta {
	min-width: 0;
	flex: 1;
}

.rn-single__avatar {
	width: 56px;
	height: 56px;
}

.rn-single__author {
	margin: 0;
	font-weight: 650;
	font-size: 1rem;
}

.rn-single__author a {
	color: inherit;
	text-decoration: none;
}

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

.rn-single__title {
	font-family: var(--rn-font-display);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0 0 1rem;
}

.rn-single__content {
	font-family: var(--rn-font-body);
	font-size: 1.05rem;
}

.rn-single__related {
	margin-top: 2rem;
	padding: 1rem 1.1rem;
	background: var(--rn-accent-soft);
	border-left: 3px solid var(--rn-accent);
}

.rn-single__related-label {
	display: block;
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rn-muted);
}

.rn-single__related-link {
	font-family: var(--rn-font-display);
	font-size: 1.05rem;
	font-weight: 650;
	color: var(--rn-accent);
	text-decoration: none;
	line-height: 1.35;
}

.rn-single__related-link:hover,
.rn-single__related-link:focus {
	text-decoration: underline;
}

.rn-single__back {
	margin-top: 1.25rem;
	font-size: 0.9rem;
	color: var(--rn-muted);
}

.rn-single__back a {
	color: var(--rn-muted);
	text-decoration: none;
}

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

/* Archive */
.rn-archive {
	max-width: 42rem;
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.rn-archive__header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rn-rule);
}

.rn-archive__title {
	font-family: var(--rn-font-display);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	margin: 0 0 0.35rem;
	color: var(--rn-accent);
}

.rn-archive__intro {
	margin: 0;
	color: var(--rn-muted);
}

.rn-archive__empty {
	margin: 2rem 0 0;
	padding: 1.5rem 1.25rem;
	background: var(--rn-bg);
	border: 1px solid var(--rn-rule);
	text-align: center;
}

.rn-archive__empty-title {
	margin: 0 0 0.4rem;
	font-family: var(--rn-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rn-accent);
}

.rn-archive__empty-text {
	margin: 0;
	color: var(--rn-muted);
	font-size: 0.95rem;
}

.rn-archive .rn-feed--archive .rn-feed__list {
	gap: 0;
}

.rn-archive .navigation.pagination {
	margin-top: 1.5rem;
}

@media (max-width: 600px) {
	.rn-feed {
		max-width: none;
		border-left: 0;
		border-right: 0;
		padding-left: 0.85rem;
		padding-right: 0.85rem;
	}
}
