:root {
	--agrinews-page-bg: #ffffff;
	--agrinews-surface: #ffffff;
	--agrinews-surface-soft: #f6f8f6;
	--agrinews-muted: #68736d;
	color-scheme: light;
}

html,
body,
.dotsmaker-page {
	background-color: var(--agrinews-page-bg);
	transition: background-color .28s ease, color .28s ease;
}

html[data-theme="light"],
html[data-theme="light"] body {
	background-color: #fff;
}

.agrinews-theme-toggle {
	position: relative;
	display: grid;
	width: 54px;
	height: 100%;
	min-height: 44px;
	flex: 0 0 54px;
	place-items: center;
	padding: 0;
	border: 0;
	border-inline-start: 1px solid rgb(255 255 255 / 15%);
	background: transparent;
	color: #fff;
	cursor: pointer;
	isolation: isolate;
}

.agrinews-theme-toggle::before {
	position: absolute;
	inset: 7px;
	z-index: -1;
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 50%;
	content: "";
	transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.agrinews-theme-toggle:hover::before {
	border-color: var(--agrinews-gold);
	background: rgb(255 255 255 / 9%);
	transform: rotate(12deg);
}

.agrinews-theme-toggle__icon {
	grid-area: 1 / 1;
	transition: opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}

.agrinews-theme-toggle__sun {
	color: var(--agrinews-gold);
	opacity: 0;
	transform: rotate(-80deg) scale(.55);
}

.agrinews-theme-toggle__moon {
	opacity: 1;
	transform: rotate(0) scale(1);
}

html[data-theme="dark"] .agrinews-theme-toggle__sun {
	opacity: 1;
	transform: rotate(0) scale(1);
}

html[data-theme="dark"] .agrinews-theme-toggle__moon {
	opacity: 0;
	transform: rotate(80deg) scale(.55);
}

.footer-theme {
	padding: 3px;
}

.footer-theme .agrinews-theme-toggle {
	width: 92px;
	height: 40px;
	min-height: 40px;
	border: 0;
	border-radius: 24px;
	background: #043d2b;
}

.footer-theme .agrinews-theme-toggle::before {
	inset: 3px auto 3px 3px;
	width: 40px;
	border: 0;
	background: #075d3e;
	transform: translateX(46px);
}

html[data-theme="dark"] .footer-theme .agrinews-theme-toggle::before {
	transform: translateX(0);
}

.footer-theme .agrinews-theme-toggle__moon {
	justify-self: start;
	margin-inline-start: 13px;
}

.footer-theme .agrinews-theme-toggle__sun {
	justify-self: end;
	margin-inline-end: 13px;
}

html[data-theme="dark"] {
	--agrinews-page-bg: #07130e;
	--agrinews-surface: #0e2118;
	--agrinews-surface-soft: #132a1f;
	--agrinews-header-bg: #0b1d15;
	--agrinews-topbar-bg: #081710;
	--agrinews-text: #e7eee9;
	--agrinews-border: #294137;
	--agrinews-muted: #a9b8af;
	--ink: #e7eee9;
	--ivory: #11241a;
	color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .dotsmaker-page {
	color: var(--agrinews-text);
}

html[data-theme="dark"] .dotsmaker-page {
	background: #07130e;
}

html[data-theme="dark"] .agrinews-topbar {
	color: #b5c4bb;
}

html[data-theme="dark"] .agrinews-brand-copy strong,
html[data-theme="dark"] .agrinews-mobile-brand strong {
	color: #79c997;
}

html[data-theme="dark"] .agrinews-brand-copy small,
html[data-theme="dark"] .agrinews-weather small {
	color: #9eb2a6;
}

html[data-theme="dark"] .agrinews-weather-icon {
	border: 1px solid #365244;
	background: #14291f;
	color: #efbf43;
}

html[data-theme="dark"] .agrinews-header-ad {
	border-color: #365244;
	background: linear-gradient(135deg, #10271d, #0b1d15);
}

html[data-theme="dark"] .agrinews-header-ad > span,
html[data-theme="dark"] .agrinews-header-ad a > span {
	color: #9eb2a6;
}

html[data-theme="dark"] .agrinews-language,
html[data-theme="dark"] .agrinews-header-search {
	border-color: #365244;
	background: #10271d;
	color: #dce8e1;
}

html[data-theme="dark"] .agrinews-main-header,
html[data-theme="dark"] .agrinews-desktop-search,
html[data-theme="dark"] .agrinews-mobile-search,
html[data-theme="dark"] .agrinews-mobile-actions button,
html[data-theme="dark"] .assistant,
html[data-theme="dark"] .assistant-messages .bot,
html[data-theme="dark"] .suggestions button {
	background: var(--agrinews-surface);
	color: var(--agrinews-text);
}

html[data-theme="dark"] .assistant-messages,
html[data-theme="dark"] .assistant-messages .user {
	background: var(--agrinews-surface-soft);
}

html[data-theme="dark"] :is(input, textarea, select) {
	border-color: var(--agrinews-border);
	background-color: #0a1912;
	color: var(--agrinews-text);
}

html[data-theme="dark"] :is(.news-card, .archive-card, .archive-toolbar, .archive-widget, .archive-empty, .article-share, .article-tags a, .article-ad, .sidebar-panel, .related-grid article, .article-nav-card, .article-author-box, .comments-area) {
	border-color: var(--agrinews-border);
	background-color: var(--agrinews-surface);
	color: var(--agrinews-text);
}

html[data-theme="dark"] .dotsmaker-page {
	--agrinews-text: #e7eee9;
	--agrinews-border: #294137;
}

html[data-theme="dark"] .dotsmaker-latest-news__lead,
html[data-theme="dark"] .dotsmaker-latest-news__secondary-card {
	border-color: #365244;
	background: #10271d;
	box-shadow: 0 12px 30px rgb(0 0 0 / 24%);
	color: #edf4ef;
}

html[data-theme="dark"] .dotsmaker-latest-news__secondary-card h3 a {
	color: #edf4ef;
}

html[data-theme="dark"] .dotsmaker-latest-news__secondary-card .agrinews-news-category {
	color: #70c28f;
}

html[data-theme="dark"] .dotsmaker-most-read {
	border-color: #365244;
	background: #10271d;
	box-shadow: 0 12px 30px rgb(0 0 0 / 20%);
	color: #dce8e1;
}

html[data-theme="dark"] .dotsmaker-most-read__header,
html[data-theme="dark"] .dotsmaker-most-read__item {
	border-color: #315044;
}

html[data-theme="dark"] .dotsmaker-most-read__header h2 {
	color: #88d2a4;
}

html[data-theme="dark"] .dotsmaker-most-read__item h3 a {
	color: #dce8e1;
}

html[data-theme="dark"] .dotsmaker-most-read .agrinews-most-category {
	color: #70c28f;
}

html[data-theme="dark"] .dotsmaker-most-read .dotsmaker-most-all {
	color: #e7c55a;
}

html[data-theme="dark"] .dotsmaker-featured-side-list {
	border-color: var(--fnsl-dark-border);
	background: linear-gradient(145deg, var(--fnsl-dark-content), var(--fnsl-dark-bg));
	box-shadow: 0 16px 36px rgb(0 0 0 / 22%);
	color: var(--fnsl-dark-text);
}

html[data-theme="dark"] .dotsmaker-featured-side-list h3 a {
	color: var(--fnsl-dark-title);
}

html[data-theme="dark"] .dotsmaker-featured-side-list__side,
html[data-theme="dark"] .dotsmaker-featured-side-list__item,
html[data-theme="dark"] .dotsmaker-featured-side-list__footer {
	border-color: #355647;
}

html[data-theme="dark"] .dotsmaker-featured-side-list__item time {
	color: var(--fnsl-dark-text);
}

html[data-theme="dark"] .dotsmaker-featured-side-list__more {
	border-color: #6f9d82;
	color: #dce8e1;
}

html[data-theme="dark"] .dotsmaker-featured-side-list__decor {
	opacity: .34;
	filter: brightness(1.55);
}

html[data-theme="dark"] .dotsmaker-page :is(.dm-post-grid article, .dotsmaker-latest-news__card, .dotsmaker-most-read__item) {
	border-color: var(--agrinews-border);
	background-color: var(--agrinews-surface);
}

html[data-theme="light"] .archive-page {
	--archive-bg: #fbfcfb;
	--archive-card: #fff;
	--archive-muted: #68736d;
	--archive-line: #e1e5e2;
	color: #252a27;
}

@media (max-width: 900px) {
	.agrinews-mobile-actions .agrinews-theme-toggle {
		width: 44px;
		flex-basis: 44px;
		border: 1px solid var(--agrinews-border);
		background: #fff;
		color: var(--agrinews-green);
	}

	html[data-theme="dark"] .agrinews-mobile-actions .agrinews-theme-toggle {
		background: var(--agrinews-surface);
		color: #d9e6de;
	}
}

@media (prefers-reduced-motion: reduce) {
	html,
	body,
	.dotsmaker-page,
	.agrinews-theme-toggle *,
	.agrinews-theme-toggle::before {
		transition: none !important;
	}
}
