/*
 * AgentNews editorial layout.
 */

:root {
	--agentnews-ink: #151923;
	--agentnews-muted: #5d6677;
	--agentnews-line: #dfe4ec;
	--agentnews-panel: #ffffff;
	--agentnews-soft: #f6f8fb;
	--agentnews-insight: #1f4f8f;
	--agentnews-insight-soft: #edf3fb;
	--agentnews-blog: #08756f;
	--agentnews-blog-soft: #e8f5f3;
	--agentnews-quick: #4f5b6b;
	--agentnews-quick-soft: #f1f3f6;
	--agentnews-shadow: 0 14px 32px rgba(21, 25, 35, 0.1);
	--agentnews-shadow-soft: 0 8px 18px rgba(21, 25, 35, 0.07);
	--agentnews-shadow-lift: 0 18px 42px rgba(21, 25, 35, 0.12);
	--agentnews-radius: 8px;
}

html {
	scroll-behavior: smooth;
}

.agentnews-home,
.agentnews-archive,
.agentnews-single {
	color: var(--agentnews-ink);
	overflow-x: clip;
}

.agentnews-home *,
.agentnews-home *::before,
.agentnews-home *::after,
.agentnews-archive *,
.agentnews-archive *::before,
.agentnews-archive *::after,
.agentnews-single *,
.agentnews-single *::before,
.agentnews-single *::after {
	box-sizing: border-box;
}

@supports not (overflow: clip) {
	.agentnews-home,
	.agentnews-archive,
	.agentnews-single {
		overflow-x: hidden;
	}
}

.agentnews-site-header {
	background: #ffffff;
	border-bottom: 1px solid var(--agentnews-line);
	padding-bottom: 0 !important;
	padding-top: 14px !important;
}

.agentnews-site-header__inner {
	align-items: flex-start;
	flex-direction: column;
	gap: 0.35rem;
	max-width: 1120px !important;
	width: 100% !important;
}

.agentnews-site-logo,
.agentnews-site-logo:visited {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}

.agentnews-site-logo img {
	display: block;
	height: auto;
	max-height: 112px;
	max-width: min(40.5vw, 552px);
	object-fit: contain;
	width: min(40.5vw, 552px);
}

.agentnews-site-header__title a {
	letter-spacing: 0;
	text-decoration: none;
}

.agentnews-site-header__nav {
	align-self: flex-start;
	display: flex;
	font-size: 0.95rem;
	font-weight: 700;
	justify-content: flex-end;
	width: 100%;
}

.agentnews-site-header__nav .wp-block-navigation__container {
	flex-wrap: nowrap;
	justify-content: flex-end !important;
	white-space: nowrap;
}

.agentnews-site-header__nav .wp-block-navigation__responsive-container-open {
	margin-left: auto;
}

.agentnews-site-header__nav a {
	text-decoration: none;
}

.agentnews-site-header__nav a:hover,
.agentnews-site-header__nav a:focus {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.agentnews-site-footer {
	background: var(--agentnews-soft);
	border-top: 1px solid var(--agentnews-line);
	color: var(--agentnews-muted);
}

.agentnews-site-footer__inner {
	gap: 1.25rem;
}

.agentnews-site-footer__brand {
	gap: 0.25rem;
}

.agentnews-site-footer .wp-block-site-title {
	margin: 0;
}

.agentnews-site-footer .wp-block-site-title a,
.agentnews-site-footer__nav a {
	color: var(--agentnews-ink);
	text-decoration: none;
}

.agentnews-site-footer .wp-block-site-tagline {
	margin: 0;
}

.agentnews-site-footer__nav {
	font-size: 0.9rem;
	font-weight: 700;
}

.agentnews-site-footer__nav a:hover,
.agentnews-site-footer__nav a:focus {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.agentnews-home a,
.agentnews-archive a,
.agentnews-single a {
	text-underline-offset: 0.16em;
}

.agentnews-home__hero {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-bottom: 1px solid var(--agentnews-line);
	border-top: 1px solid var(--agentnews-line);
	box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

.agentnews-kicker {
	color: var(--agentnews-muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin: 0;
	text-transform: uppercase;
}

.agentnews-home__intro {
	max-width: 52rem;
}

.agentnews-home__intro h1 {
	letter-spacing: 0;
	line-height: 1;
	margin-bottom: 0;
}

.agentnews-home__intro p {
	color: var(--agentnews-muted);
	max-width: 42rem;
}

.agentnews-hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.4rem;
}

.agentnews-button,
.agentnews-button:visited,
.agentnews-card__more,
.agentnews-card__more:visited {
	align-items: center;
	border: 1px solid var(--agentnews-line);
	border-radius: 6px;
	color: var(--agentnews-ink);
	display: inline-flex;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 2.08rem;
	padding: 0.48rem 0.72rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
	width: fit-content;
}

.agentnews-button:hover,
.agentnews-button:focus,
.agentnews-card__more:hover,
.agentnews-card__more:focus {
	border-color: currentColor;
	box-shadow: var(--agentnews-shadow-soft);
	text-decoration: none;
	transform: translateY(-1px);
}

.agentnews-button--insight {
	background: var(--agentnews-insight-soft);
	color: var(--agentnews-insight);
}

.agentnews-button--blog {
	background: var(--agentnews-blog-soft);
	color: var(--agentnews-blog);
}

.agentnews-button--quick {
	background: var(--agentnews-quick-soft);
	color: var(--agentnews-quick);
}

.agentnews-section {
	margin-left: auto;
	margin-right: auto;
	max-width: 1120px !important;
	width: 100% !important;
}

.agentnews-section > .agentnews-section__header,
.agentnews-section > .agentnews-rail-query,
.agentnews-section > .agentnews-quick-grid,
.agentnews-section > .agentnews-archive-query,
.agentnews-section .wp-block-post-template {
	max-width: none !important;
	width: 100% !important;
}

.agentnews-rail__track,
.agentnews-archive-grid {
	align-items: stretch;
}

.agentnews-rail__track > *,
.agentnews-archive-grid > *,
.agentnews-rail__track > * + *,
.agentnews-archive-grid > * + * {
	margin-block-start: 0 !important;
}

.agentnews-section__header {
	align-items: end;
	border-top: 1px solid var(--agentnews-line);
	display: flex;
	gap: 1.5rem;
	justify-content: space-between;
	padding-top: clamp(1.25rem, 2vw, 2rem);
}

.agentnews-home .agentnews-section > .agentnews-section__header {
	border-top: 0;
	padding-top: 0;
}

.agentnews-section__title {
	margin: 0;
}

.agentnews-section__description {
	color: var(--agentnews-muted);
	margin-top: 0.45rem;
	max-width: 42rem;
}

.agentnews-rail-query {
	margin-top: 1.25rem;
	overflow: visible;
	position: relative;
}

.agentnews-rail-query::after {
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--agentnews-line);
	border-radius: 6px;
	bottom: 0.05rem;
	box-shadow: 0 6px 16px rgba(21, 25, 35, 0.08);
	color: var(--agentnews-muted);
	content: "Scorri \2192";
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1;
	padding: 0.34rem 0.48rem;
	pointer-events: none;
	position: absolute;
	right: 0.15rem;
	text-transform: uppercase;
	z-index: 2;
}

.agentnews-rail-query .agentnews-rail__track {
	cursor: grab;
	display: grid;
	gap: 1rem;
	grid-auto-columns: calc((100% - 2rem) / 3);
	grid-auto-flow: column;
	grid-template-columns: none;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	padding: 0 0 1.45rem;
	scroll-padding-inline: 0;
	scroll-snap-type: inline mandatory;
}

.agentnews-rail-query.is-user-interacting .agentnews-rail__track {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

.agentnews-rail-query.is-user-interacting .agentnews-rail__track > li {
	scroll-snap-align: none;
}

.agentnews-rail-query .agentnews-rail__track > li {
	min-width: 0;
	scroll-snap-align: start;
}

.agentnews-rail-query .agentnews-rail__track::-webkit-scrollbar {
	height: 0.6rem;
}

.agentnews-rail-query .agentnews-rail__track::-webkit-scrollbar-thumb {
	background: #c9d1dc;
	border-radius: 999px;
}

.agentnews-card {
	background: var(--agentnews-panel);
	border: 1px solid var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	box-shadow: var(--agentnews-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.92);
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.agentnews-card--insight {
	border-top: 4px solid var(--agentnews-insight);
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.agentnews-card--blog {
	background: linear-gradient(180deg, #ffffff 0%, #fbfffe 100%);
	border-left: 4px solid var(--agentnews-blog);
	border-top: 1px solid var(--agentnews-line);
}

.agentnews-card:hover,
.agentnews-card:focus-within {
	border-color: #cbd5e1;
	box-shadow: var(--agentnews-shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.agentnews-card__image {
	margin: 0;
}

.agentnews-card__image img {
	aspect-ratio: 16 / 9;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.agentnews-card--blog .agentnews-card__image img {
	aspect-ratio: 3 / 2;
}

.agentnews-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem;
}

.agentnews-card__meta {
	color: var(--agentnews-muted);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.agentnews-card--insight .agentnews-card__meta {
	color: #426184;
}

.agentnews-card--blog .agentnews-card__meta {
	color: #0d6f6a;
}

.agentnews-card__title {
	font-size: clamp(1.08rem, 1vw + 0.8rem, 1.35rem);
	line-height: 1.18;
	margin: 0;
}

.agentnews-card--blog .agentnews-card__title {
	font-size: clamp(1.02rem, 0.8vw + 0.82rem, 1.22rem);
	line-height: 1.22;
}

.agentnews-card__title a {
	text-decoration: none;
}

.agentnews-card__title a:hover,
.agentnews-card__title a:focus {
	text-decoration: underline;
}

.agentnews-card__excerpt {
	color: var(--agentnews-muted);
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
}

.agentnews-card__excerpt .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.agentnews-card__more {
	margin-top: auto;
	width: fit-content;
}

.agentnews-card--insight .agentnews-card__more {
	color: var(--agentnews-insight);
}

.agentnews-card--blog .agentnews-card__more {
	color: var(--agentnews-blog);
}

.agentnews-quick-grid {
	align-items: stretch;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agentnews-quick-grid > *,
.agentnews-quick-grid > * + * {
	align-self: stretch;
	margin-block-start: 0 !important;
	min-width: 0;
}

.agentnews-quick-column {
	background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
	border: 1px solid var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	box-shadow: var(--agentnews-shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.92);
	display: flex;
	flex-direction: column;
	margin-block-start: 0 !important;
	padding: 1rem;
}

.agentnews-quick-column h3 {
	font-size: 1.05rem;
	margin: 0 0 0.75rem;
}

.agentnews-quick-column .agent-cr-rss-links,
.agentnews-quick-column .agent-cr-rss-links--single {
	margin: 0 0 0.85rem;
}

.agentnews-quick-column .agent-cr-rss-link-button {
	border-radius: 6px;
	font-size: 0.84rem;
	min-height: 2rem;
	padding: 0.46rem 0.68rem;
}

.agentnews-quick-column .agent-cr-news-list {
	display: grid;
	gap: 0.72rem;
	grid-template-columns: 1fr;
	margin: 0;
	max-height: 58rem;
	overflow: auto;
	padding-right: 0.25rem;
	scrollbar-gutter: stable;
}

.agentnews-quick-column .agent-cr-news-list::-webkit-scrollbar {
	width: 0.5rem;
}

.agentnews-quick-column .agent-cr-news-list::-webkit-scrollbar-thumb {
	background: #d5dbe5;
	border-radius: 999px;
}

.agentnews-quick-column .agent-cr-news-item {
	border-color: var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	box-shadow: 0 2px 8px rgba(21, 25, 35, 0.035);
	padding: 0.88rem;
}

.agentnews-quick-column .agent-cr-news-title {
	font-size: 0.98rem;
	line-height: 1.25;
	margin-bottom: 0.42rem;
}

.agentnews-quick-column .agent-cr-news-meta {
	color: var(--agentnews-muted);
	font-size: 0.78rem;
	line-height: 1.35;
	margin-bottom: 0.52rem;
}

.agentnews-quick-column .agent-cr-news-source br,
.agentnews-quick-column .agent-cr-news-link br,
.agentnews-quick-column .agent-cr-news-meta br {
	display: none;
}

.agentnews-quick-column .agent-cr-news-excerpt {
	color: var(--agentnews-muted);
	display: -webkit-box;
	font-size: 0.88rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.agentnews-quick-column .agent-cr-news-link {
	color: var(--agentnews-quick);
	font-size: 0.82rem;
	margin-top: 0.7rem;
}

.agentnews-single {
	background: #ffffff;
}

.agentnews-single__hero {
	position: relative;
}

.agentnews-single__hero-inner {
	gap: 1rem;
	max-width: 1120px !important;
}

.agentnews-single__hero--insight {
	background: linear-gradient(180deg, var(--agentnews-insight-soft) 0%, #ffffff 86%);
}

.agentnews-single__hero--blog {
	background: linear-gradient(180deg, var(--agentnews-blog-soft) 0%, #ffffff 86%);
}

.agentnews-single__kicker {
	color: var(--agentnews-muted);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
	width: fit-content;
}

.agentnews-single--insight .agentnews-single__kicker {
	color: var(--agentnews-insight);
}

.agentnews-single--blog .agentnews-single__kicker {
	background: var(--agentnews-blog-soft);
	border: 1px solid rgba(8, 117, 111, 0.18);
	border-radius: 6px;
	color: var(--agentnews-blog);
	padding: 0.28rem 0.5rem;
}

.agentnews-single__title {
	letter-spacing: 0;
	line-height: 1.04;
	margin: 0;
	max-width: 920px;
}

.agentnews-single--insight .agentnews-single__title {
	font-size: clamp(2rem, 3.6vw, 3.55rem);
	line-height: 1.08;
}

.agentnews-single--blog .agentnews-single__title {
	font-size: clamp(2rem, 3.6vw, 3.55rem);
	line-height: 1.08;
	max-width: 840px;
}

.agentnews-single__meta {
	color: var(--agentnews-muted);
	font-size: 0.88rem;
	font-weight: 700;
	gap: 0.5rem 1rem;
	margin-top: 0.35rem;
	text-transform: uppercase;
}

.agentnews-single__meta a {
	color: inherit;
	text-decoration: none;
}

.agentnews-single__meta a:hover,
.agentnews-single__meta a:focus {
	text-decoration: underline;
}

.agentnews-single__media {
	margin-top: clamp(1.5rem, 3vw, 2.4rem);
	max-width: 960px !important;
}

.agentnews-single--blog .agentnews-single__media {
	max-width: 820px !important;
}

.agentnews-single__featured-image {
	margin: 0;
	max-width: none !important;
	width: 100% !important;
}

.agentnews-single__featured-image img {
	aspect-ratio: 16 / 9;
	border: 1px solid rgba(31, 79, 143, 0.14);
	border-radius: 12px;
	box-shadow: 0 16px 38px rgba(21, 25, 35, 0.1);
	display: block;
	object-fit: cover;
	overflow: hidden;
	width: 100%;
}

.agentnews-single--blog .agentnews-single__featured-image img {
	aspect-ratio: 3 / 2;
	border-color: rgba(8, 117, 111, 0.18);
	box-shadow: 0 14px 30px rgba(8, 117, 111, 0.09), 0 8px 18px rgba(21, 25, 35, 0.07);
}

.agentnews-single__body {
	background: #ffffff;
	margin-left: auto;
	margin-right: auto;
	max-width: 824px !important;
	width: 100% !important;
}

.agentnews-single--blog .agentnews-single__body {
	max-width: 788px !important;
}

.agentnews-single__content {
	color: var(--agentnews-ink);
	font-size: clamp(1rem, 0.3vw + 0.95rem, 1.08rem);
	line-height: 1.75;
}

.agentnews-single--blog .agentnews-single__content {
	font-size: clamp(1rem, 0.25vw + 0.94rem, 1.05rem);
	line-height: 1.68;
}

.agentnews-single__content > * {
	margin-block-start: 1.15rem;
}

.agentnews-single__content > :first-child {
	margin-block-start: 0;
}

.agentnews-single__content h2,
.agentnews-single__content h3,
.agentnews-single__content h4 {
	letter-spacing: 0;
	line-height: 1.18;
	margin-block-start: 2rem;
}

.agentnews-single__content h2 {
	font-size: clamp(1.5rem, 1.1vw + 1.18rem, 2rem);
}

.agentnews-single__content h3 {
	font-size: clamp(1.375rem, 0.65vw + 1.1rem, 1.625rem);
}

.agentnews-single--insight .agentnews-single__content h2,
.agentnews-single--insight .agentnews-single__content h3 {
	color: #183f73;
}

.agentnews-single--blog .agentnews-single__content h2,
.agentnews-single--blog .agentnews-single__content h3 {
	color: #08645f;
}

.agentnews-single .wp-block-post-content figure,
.agentnews-single .wp-block-image {
	margin-block: 2rem;
}

.agentnews-single .wp-block-post-content figure > a,
.agentnews-single .wp-block-image > a {
	border-radius: 10px;
	display: block;
	overflow: hidden;
}

.agentnews-single .wp-block-post-content img,
.agentnews-single .wp-block-image img,
.agentnews-single figure img,
.agentnews-single .entry-content img {
	border-radius: 10px;
	display: block;
	height: auto;
	max-width: 100%;
}

.agentnews-single .wp-block-post-content figure img,
.agentnews-single .wp-block-image img {
	box-shadow: 0 10px 24px rgba(21, 25, 35, 0.07);
}

.agentnews-single .agentnews-single__featured-image img {
	border-radius: 12px;
}

.agentnews-single figcaption,
.agentnews-single .wp-element-caption {
	color: var(--agentnews-muted);
	font-size: 0.86rem;
	line-height: 1.45;
	margin-top: 0.65rem;
	text-align: left;
}

.agentnews-single__after {
	color: var(--agentnews-muted);
	margin-top: clamp(2.5rem, 5vw, 4rem);
	padding-top: 1.25rem;
}

.agentnews-single__terms {
	font-size: 0.88rem;
	font-weight: 700;
}

.agentnews-single__terms a {
	border: 1px solid var(--agentnews-line);
	border-radius: 6px;
	color: var(--agentnews-muted);
	display: inline-block;
	margin: 0.2rem 0.2rem 0.2rem 0;
	padding: 0.28rem 0.48rem;
	text-decoration: none;
}

.agentnews-single--insight .agentnews-single__terms a {
	background: var(--agentnews-insight-soft);
	color: var(--agentnews-insight);
}

.agentnews-single--blog .agentnews-single__terms a {
	background: var(--agentnews-blog-soft);
	color: var(--agentnews-blog);
}

.agentnews-single__separator {
	margin-block: 1.25rem;
}

.agentnews-single__comments {
	font-size: 0.95rem;
}

.agentnews-single--insight .agentnews-single__body {
	border-top: 4px solid var(--agentnews-insight);
}

.agentnews-single--blog .agentnews-single__body {
	border-left: 4px solid rgba(8, 117, 111, 0.42);
}

.agentnews-archive__hero {
	border-bottom: 1px solid var(--agentnews-line);
}

.agentnews-archive__hero--insight {
	background: linear-gradient(180deg, var(--agentnews-insight-soft), #ffffff);
}

.agentnews-archive__hero--blog {
	background: linear-gradient(180deg, var(--agentnews-blog-soft), #ffffff);
}

.agentnews-archive__hero h1 {
	margin-bottom: 0;
}

.agentnews-archive__hero p {
	color: var(--agentnews-muted);
	max-width: 44rem;
}

.agentnews-archive-query {
	margin-top: 0;
}

.agentnews-archive-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.agentnews-archive-grid > li {
	min-width: 0;
}

.agentnews-archive .wp-block-query-pagination {
	border-top: 1px solid var(--agentnews-line);
	margin-top: 2rem;
	padding-top: 1rem;
}

.agentnews-archive .wp-block-query-no-results {
	color: var(--agentnews-muted);
}

@media (max-width: 960px) {
	.agentnews-site-logo img {
		max-height: 77px;
		max-width: min(40.5vw, 375px);
		width: min(40.5vw, 375px);
	}

	.agentnews-rail-query .agentnews-rail__track {
		grid-auto-columns: calc((100% - 1rem) / 2);
	}

	.agentnews-quick-grid,
	.agentnews-archive-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.agentnews-quick-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.agentnews-rail-query .agentnews-rail__track {
		gap: 0.9rem;
		grid-auto-columns: 100%;
		overflow-y: hidden;
		padding-bottom: 1.65rem;
		scroll-padding-inline: 0;
	}

	.agentnews-rail-query .agentnews-rail__track > li {
		scroll-snap-align: start;
	}
}

@media (max-width: 680px) {
	.agentnews-site-header__inner {
		align-items: flex-start;
		gap: 0.35rem;
	}

	.agentnews-site-logo img {
		height: auto;
		max-height: 48px;
		max-width: min(calc(100vw - 80px), 233px);
		width: min(calc(100vw - 80px), 233px);
	}

	.agentnews-site-header {
		padding-bottom: 10px !important;
		padding-top: 18px !important;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open {
		background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
		box-sizing: border-box;
		color: var(--agentnews-ink);
		padding: 1.35rem 1.35rem 2rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open *,
	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open *::before,
	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open *::after {
		box-sizing: border-box;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		margin: 0 auto;
		max-width: 34rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container-close {
		align-items: center;
		background: #eef2f7;
		border: 1px solid rgba(21, 25, 35, 0.08);
		border-radius: 999px;
		box-shadow: 0 8px 18px rgba(21, 25, 35, 0.08);
		display: inline-flex;
		height: 3rem;
		justify-content: center;
		right: 1.15rem;
		top: 1.05rem;
		width: 3rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container-close svg {
		height: 1.45rem;
		width: 1.45rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 4.6rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 0.85rem;
		max-width: 100%;
		width: 100%;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		background: #ffffff;
		border: 1px solid var(--agentnews-line);
		border-left: 4px solid #0f9c9a;
		border-radius: 8px;
		box-shadow: var(--agentnews-shadow-soft);
		color: var(--agentnews-ink);
		display: flex;
		font-size: clamp(1.35rem, 6vw, 1.7rem);
		font-weight: 800;
		justify-content: space-between;
		line-height: 1.1;
		padding: 1rem 1.05rem;
		text-decoration: none;
		width: 100%;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
		color: var(--agentnews-muted);
		content: "\2192";
		font-size: 1rem;
		line-height: 1;
		margin-left: 1rem;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.agentnews-site-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
		border-color: #cbd5e1;
		box-shadow: var(--agentnews-shadow-lift);
		text-decoration: none;
	}

	.agentnews-home__hero {
		padding-bottom: var(--wp--preset--spacing--40) !important;
		padding-top: var(--wp--preset--spacing--40) !important;
	}

	.agentnews-section__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.75rem;
	}

	.agentnews-archive-grid {
		grid-template-columns: 1fr;
	}

	.agentnews-single__hero {
		padding-bottom: var(--wp--preset--spacing--40) !important;
		padding-top: var(--wp--preset--spacing--40) !important;
	}

	.agentnews-single__title {
		font-size: clamp(2rem, 11vw, 2.85rem) !important;
	}

	.agentnews-single__media {
		margin-top: 1.25rem;
	}

	.agentnews-single .agentnews-single__featured-image img {
		border-radius: 10px;
	}

	.agentnews-single--blog .agentnews-single__body {
		border-left: 0;
		border-top: 4px solid rgba(8, 117, 111, 0.42);
	}

	.agentnews-quick-column {
		padding: 0.85rem;
	}

	.agentnews-quick-column .agent-cr-news-list {
		max-height: 34rem;
		overflow: auto;
		padding-right: 0.25rem;
	}

	.agentnews-quick-column .agent-cr-news-item {
		padding: 0.72rem;
	}

	.agentnews-quick-column .agent-cr-news-title {
		font-size: 0.94rem;
	}

	.agentnews-quick-column .agent-cr-news-excerpt {
		-webkit-line-clamp: 3;
	}
}

@media (max-width: 640px) {
	.agentnews-single__title {
		font-size: clamp(1.9rem, 7.2vw, 2.25rem) !important;
	}
}

.agentnews-back-to-top {
	align-items: center;
	background: #1f2937;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	bottom: 1rem;
	box-shadow: 0 10px 24px rgba(21, 25, 35, 0.18);
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.1rem;
	font-weight: 700;
	height: 2.6rem;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	right: 1rem;
	transform: translateY(0.5rem);
	transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
	width: 2.6rem;
	z-index: 20;
}

.agentnews-back-to-top.is-visible {
	opacity: 0.92;
	pointer-events: auto;
	transform: translateY(0);
}

.agentnews-back-to-top:hover,
.agentnews-back-to-top:focus {
	background: #111827;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.agentnews-button,
	.agentnews-card,
	.agentnews-card__more,
	.agentnews-back-to-top {
		transition: none;
	}

	.agentnews-button:hover,
	.agentnews-button:focus,
	.agentnews-card:hover,
	.agentnews-card:focus-within,
	.agentnews-card__more:hover,
	.agentnews-card__more:focus {
		transform: none;
	}
}

/* Header search, aligned with the existing AgentNews navigation. */
.agentnews-site-header__tools {
	align-items: center;
	display: flex;
	gap: 0.7rem;
	justify-content: flex-end;
	position: relative;
	width: 100%;
}

.agentnews-site-header__tools .agentnews-site-header__nav {
	flex: 1 1 auto;
	width: auto;
}

.agentnews-header-search {
	flex: 0 0 auto;
	position: relative;
	z-index: 80;
}

.agentnews-header-search__toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--agentnews-line);
	border-radius: 6px;
	color: var(--agentnews-ink);
	cursor: pointer;
	display: inline-flex;
	height: 2.5rem;
	justify-content: center;
	list-style: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	width: 2.5rem;
}

.agentnews-header-search__toggle::-webkit-details-marker {
	display: none;
}

.agentnews-header-search__toggle svg {
	fill: none;
	height: 1.15rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
	width: 1.15rem;
}

.agentnews-header-search__toggle:hover,
.agentnews-header-search__toggle:focus-visible,
.agentnews-header-search[open] .agentnews-header-search__toggle {
	background: var(--agentnews-insight);
	border-color: var(--agentnews-insight);
	color: #ffffff;
}

.agentnews-header-search__toggle:focus-visible {
	outline: 2px solid var(--agentnews-insight);
	outline-offset: 0.18rem;
}

.agentnews-header-search__panel {
	background: #ffffff;
	border: 1px solid var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	box-shadow: var(--agentnews-shadow-lift);
	box-sizing: border-box;
	padding: 1rem;
	position: absolute;
	right: 0;
	top: calc(100% + 0.65rem);
	width: min(22rem, calc(100vw - 2rem));
}

.agentnews-header-search__panel label {
	color: var(--agentnews-ink);
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	margin-bottom: 0.55rem;
}

.agentnews-header-search__fields {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: minmax(0, 1fr) auto;
}

.agentnews-header-search__fields input {
	background: #ffffff;
	border: 1px solid #b8c1ce;
	border-radius: 6px;
	box-sizing: border-box;
	color: var(--agentnews-ink);
	font: inherit;
	min-height: 2.65rem;
	min-width: 0;
	padding: 0.6rem 0.7rem;
	width: 100%;
}

.agentnews-header-search__fields input:focus {
	border-color: var(--agentnews-insight);
	outline: 3px solid rgba(31, 79, 143, 0.16);
}

.agentnews-header-search__fields button {
	background: var(--agentnews-insight);
	border: 1px solid var(--agentnews-insight);
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 2.65rem;
	padding: 0.55rem 0.8rem;
}

/* Privacy-friendly sharing, with no third-party script embedded in the page. */
.agentnews-share {
	background: var(--agentnews-insight-soft);
	border: 1px solid rgba(31, 79, 143, 0.22);
	border-radius: var(--agentnews-radius);
	box-shadow: var(--agentnews-shadow-soft);
	margin-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
	padding: clamp(1rem, 2.5vw, 1.4rem);
}

.agentnews-single--blog .agentnews-share {
	background: var(--agentnews-blog-soft);
	border-color: rgba(8, 117, 111, 0.24);
}

.agentnews-share__title {
	color: var(--agentnews-ink);
	font-size: clamp(1.1rem, 2vw, 1.35rem);
	margin: 0 0 1rem;
}

.agentnews-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.agentnews-share__button {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--agentnews-insight);
	border-radius: 6px;
	color: var(--agentnews-insight) !important;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	justify-content: center;
	min-height: 2.4rem;
	padding: 0.5rem 0.75rem;
	text-decoration: none !important;
	transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.agentnews-single--blog .agentnews-share__button {
	border-color: var(--agentnews-blog);
	color: var(--agentnews-blog) !important;
}

.agentnews-share__button:hover,
.agentnews-share__button:focus-visible {
	background: var(--agentnews-insight);
	box-shadow: var(--agentnews-shadow-soft);
	color: #ffffff !important;
	transform: translateY(-1px);
}

.agentnews-single--blog .agentnews-share__button:hover,
.agentnews-single--blog .agentnews-share__button:focus-visible {
	background: var(--agentnews-blog);
}

.agentnews-share__button:focus-visible {
	outline: 2px solid var(--agentnews-ink);
	outline-offset: 0.18rem;
}

.agentnews-share__status {
	color: var(--agentnews-muted);
	font-size: 0.82rem;
	margin: 0.75rem 0 0;
	min-height: 1.25em;
}

/* Related editorial cards retain the light, restrained AgentNews language. */
.agentnews-related {
	left: 50%;
	margin-block: clamp(2rem, 5vw, 3.5rem) 1.5rem;
	max-width: 1120px;
	position: relative;
	transform: translateX(-50%);
	width: min(1120px, calc(100vw - 2rem));
}

.agentnews-related__title {
	color: var(--agentnews-ink);
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	margin: 0 0 1.25rem;
	text-align: left;
}

.agentnews-related__grid {
	align-items: stretch;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agentnews-related-card {
	background: #ffffff;
	border: 1px solid var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	box-shadow: var(--agentnews-shadow-soft);
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.agentnews-related-card__image {
	aspect-ratio: 16 / 9;
	background: var(--agentnews-soft);
	display: block;
	overflow: hidden;
}

.agentnews-related-card__image img {
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
	width: 100%;
}

.agentnews-related-card:hover .agentnews-related-card__image img {
	transform: scale(1.025);
}

.agentnews-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.05rem;
}

.agentnews-related-card__date {
	color: var(--agentnews-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.agentnews-related-card__title {
	font-size: 1.12rem;
	line-height: 1.3;
	margin: 0.6rem 0 0.7rem;
}

.agentnews-related-card__title a {
	color: var(--agentnews-ink);
	text-decoration: none;
}

.agentnews-related-card__title a:hover,
.agentnews-related-card__title a:focus {
	color: var(--agentnews-insight);
}

.agentnews-related-card__excerpt {
	color: var(--agentnews-muted);
	display: -webkit-box;
	line-height: 1.5;
	margin: 0 0 1rem;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.agentnews-related-card__more {
	align-self: flex-start;
	border: 1px solid var(--agentnews-insight);
	border-radius: 6px;
	color: var(--agentnews-insight);
	font-size: 0.82rem;
	font-weight: 700;
	margin-top: auto;
	padding: 0.48rem 0.72rem;
	text-decoration: none;
}

.agentnews-related-card__more:hover,
.agentnews-related-card__more:focus {
	background: var(--agentnews-insight);
	color: #ffffff;
}

.agentnews-post-navigation {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 1rem;
}

.agentnews-post-navigation__link {
	background: var(--agentnews-soft);
	border: 1px solid var(--agentnews-line);
	border-radius: var(--agentnews-radius);
	color: var(--agentnews-ink);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem 1rem;
	text-decoration: none;
}

.agentnews-post-navigation__link span {
	color: var(--agentnews-muted);
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
}

.agentnews-post-navigation__link--next {
	text-align: right;
}

/* Compact mobile preview for each quick-news stream. */
.agentnews-quick-column__toggle {
	display: none;
}

/* Search results reuse AgentNews cards instead of the oversized parent layout. */
.agentnews-search {
	background: #ffffff;
	color: var(--agentnews-ink);
	min-height: 55vh;
	overflow-x: clip;
}

.agentnews-search * {
	box-sizing: border-box;
}

.agentnews-search__hero {
	background: linear-gradient(180deg, #ffffff 0%, var(--agentnews-soft) 100%);
	border-bottom: 1px solid var(--agentnews-line);
	padding: clamp(2.25rem, 5vw, 4rem) max(1rem, calc((100vw - 1120px) / 2));
}

.agentnews-search__hero-inner {
	margin-inline: auto;
	max-width: 1120px !important;
	width: 100% !important;
}

.agentnews-search__title {
	color: var(--agentnews-ink) !important;
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.12;
	margin: 0 0 1.25rem;
	max-width: 900px;
}

.agentnews-search__form {
	margin: 0;
	max-width: 680px;
}

.agentnews-search__form .wp-block-search__inside-wrapper {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: minmax(0, 1fr) auto;
}

.agentnews-search__form .wp-block-search__input {
	background: #ffffff;
	border: 1px solid #b8c1ce;
	border-radius: 6px;
	color: var(--agentnews-ink);
	font: inherit;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
}

.agentnews-search__form .wp-block-search__input:focus {
	border-color: var(--agentnews-insight);
	outline: 3px solid rgba(31, 79, 143, 0.16);
}

.agentnews-search__form .wp-block-search__button {
	background: var(--agentnews-insight);
	border: 1px solid var(--agentnews-insight);
	border-radius: 6px;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	margin: 0;
	min-height: 3rem;
	padding: 0.65rem 1.05rem;
}

.agentnews-search__results {
	margin: clamp(1.5rem, 4vw, 3rem) auto !important;
	max-width: 1120px !important;
	padding: 0 !important;
	width: calc(100% - 2rem) !important;
}

.agentnews-search__query {
	margin-inline: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

.agentnews-search__grid {
	align-items: stretch;
	display: grid !important;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agentnews-search__grid > li {
	display: flex;
	margin: 0 !important;
	min-width: 0;
}

.agentnews-search .agentnews-card--search {
	display: flex;
	flex: 1;
	min-width: 0;
}

.agentnews-search .agentnews-card__image {
	margin: 0;
	width: 100%;
}

.agentnews-search .agentnews-card__body {
	flex: 1;
}

.agentnews-search .agentnews-card__meta {
	color: var(--agentnews-muted);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.035em;
	margin: 0 0 0.65rem;
	text-transform: uppercase;
}

.agentnews-search .agentnews-card__title a,
.agentnews-search .agentnews-card__title a:visited {
	color: var(--agentnews-ink);
}

.agentnews-search .agentnews-card__title a:hover,
.agentnews-search .agentnews-card__title a:focus {
	color: var(--agentnews-insight);
}

.agentnews-search__pagination {
	margin-top: 1.5rem;
}

.agentnews-search__pagination a {
	color: var(--agentnews-insight);
}

.agentnews-search__empty {
	color: var(--agentnews-muted);
	padding: clamp(2rem, 6vw, 4rem) 1rem;
	text-align: center;
}

@media (max-width: 900px) {
	.agentnews-related__grid,
	.agentnews-search__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.agentnews-site-header__tools {
		gap: 0.55rem;
	}

	.agentnews-site-header__tools .agentnews-site-header__nav {
		flex: 0 0 auto;
		margin-left: auto;
	}

	.agentnews-site-header__nav .wp-block-navigation__responsive-container-open,
	.agentnews-header-search__toggle {
		height: 2.75rem;
		width: 2.75rem;
	}

	.agentnews-header-search__panel {
		right: 0;
	}

	.agentnews-share__buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.agentnews-share__button {
		min-width: 0;
		padding-inline: 0.45rem;
	}

	.agentnews-related {
		width: min(100%, calc(100vw - 1.5rem));
	}

	.agentnews-related__grid,
	.agentnews-post-navigation,
	.agentnews-search__grid {
		grid-template-columns: 1fr;
	}

	.agentnews-quick-column__toggle {
		align-items: center;
		align-self: center;
		appearance: none;
		background: #ffffff;
		border: 1px solid var(--agentnews-quick);
		border-radius: 6px;
		color: var(--agentnews-quick);
		cursor: pointer;
		display: inline-flex;
		font: inherit;
		font-size: 0.78rem;
		font-weight: 700;
		justify-content: center;
		margin-top: 0.85rem;
		min-height: 2.35rem;
		padding: 0.5rem 0.8rem;
		-webkit-tap-highlight-color: transparent;
	}

	.agentnews-quick-column__toggle:focus-visible {
		outline: 2px solid var(--agentnews-ink);
		outline-offset: 0.18rem;
	}

	.agentnews-quick-column__toggle[hidden],
	.agentnews-quick-column .agent-cr-news-item[hidden] {
		display: none !important;
	}

	.agentnews-quick-column .agent-cr-news-list {
		max-height: none;
		overflow: visible;
		overscroll-behavior: auto;
		padding-right: 0;
		scroll-snap-type: none;
		scrollbar-gutter: auto;
	}

	.agentnews-quick-column--expanded .agent-cr-news-list {
		max-height: 34rem;
		overflow: auto;
		overscroll-behavior: contain;
		padding-right: 0.25rem;
		scroll-snap-type: y proximity;
		scrollbar-gutter: stable;
	}

	.agentnews-search__hero {
		padding-block: 2rem;
	}

	.agentnews-search__title {
		font-size: clamp(1.65rem, 8vw, 2.25rem);
	}

	.agentnews-search__form .wp-block-search__inside-wrapper {
		grid-template-columns: 1fr;
	}

	.agentnews-search__form .wp-block-search__button {
		width: 100%;
	}

	.agentnews-search__results {
		margin-block: 1rem 2rem !important;
		width: calc(100% - 1rem) !important;
	}
}
