/**
 * Compatoz News Editorial — Base Styles & Accessibility (Astryx Theme Neutral)
 *
 * @package Compatoz_News_Editorial
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body.cne-theme {
	margin: 0;
	font-family: var(--cne-font);
	color: var(--cne-text);
	background-color: var(--cne-white);
	line-height: 1.55;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.cne-theme img {
	display: block;
	max-width: 100%;
	height: auto;
}

.cne-theme a {
	color: inherit;
	text-decoration: none;
	transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.cne-theme a:hover {
	color: var(--cne-red);
}

.cne-theme button,
.cne-theme input,
.cne-theme select,
.cne-theme textarea {
	font: inherit;
	color: inherit;
}

:where(.cne-theme button) {
	cursor: pointer;
	background: none;
	border: 0;
	padding: 0;
}

.cne-theme h1,
.cne-theme h2,
.cne-theme h3,
.cne-theme h4,
.cne-theme p,
.cne-theme figure,
.cne-theme blockquote {
	margin: 0;
}

.cne-theme :focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.cne-skip-link:focus {
	background-color: var(--color-accent);
	color: var(--color-on-accent);
	clip: auto !important;
	clip-path: none;
	display: block;
	font-size: 14px;
	font-weight: 600;
	height: auto;
	left: 12px;
	padding: 10px 16px;
	position: fixed;
	top: 12px;
	width: auto;
	z-index: 99999;
	border-radius: var(--radius-element);
	box-shadow: var(--shadow-med);
}

.cne-hidden {
	display: none !important;
}

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

	.cne-theme *,
	.cne-theme *::before,
	.cne-theme *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
