:root {
	--nexus-container-width: 1200px;
	--nexus-bg: #f6f7f8;
	--nexus-surface: #ffffff;
	--nexus-text: #1f2933;
	--nexus-muted: #617085;
	--nexus-accent: #1363df;
	--nexus-border: #d9e0e7;
	--nexus-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
	color: var(--nexus-text);
	font-family: "Segoe UI", Helvetica, Arial, sans-serif;
	line-height: 1.6;
}

body.nexus-canvas {
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
	background: transparent;
	overflow-x: hidden;
}

.nexus-canvas-main {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
}

.nexus-canvas .entry-content,
.nexus-canvas .elementor,
.nexus-canvas .elementor-section-wrap,
.nexus-canvas .elementor-widget-wrap,
.nexus-canvas .elementor-widget-container,
.nexus-canvas .e-con {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

a {
	color: var(--nexus-accent);
	text-decoration: none;
}

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

.nexus-shell {
	width: min(calc(100% - 2rem), var(--nexus-container-width));
	margin: 0 auto;
}

.site-header,
.site-footer {
	padding: 1.5rem 0;
}

.nexus-nav-before,
.nexus-nav-after {
	padding: 1.5rem 0 0;
}

.nexus-header-shell,
.nexus-footer-shell,
.nexus-nav-shell {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(217, 224, 231, 0.8);
	border-radius: 24px;
	box-shadow: var(--nexus-shadow);
	padding: 1.25rem 1.5rem;
}

.nexus-content-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	padding-bottom: 2rem;
}

.nexus-content-shell.has-sidebar-grid.has-left-sidebar.has-right-sidebar {
	grid-template-columns: 280px minmax(0, 1fr) 280px;
}

.nexus-content-shell.has-sidebar-grid.has-right-sidebar {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.nexus-content-shell.has-sidebar-grid.has-left-sidebar:not(.has-right-sidebar) {
	grid-template-columns: 320px minmax(0, 1fr);
}

.site-branding {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.site-title,
.site-description,
.entry-title,
.page-title,
.comments-title,
.widget-title {
	margin: 0;
}

.site-title a {
	color: var(--nexus-text);
}

.site-description {
	color: var(--nexus-muted);
}

.main-navigation ul,
.site-info ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.main-navigation {
	margin-top: 1rem;
}

.nexus-nav-before .main-navigation,
.nexus-nav-after .main-navigation,
.nexus-nav-inline {
	margin-top: 0;
}

.menu-toggle {
	display: none;
}

.site-main,
.widget-area {
	background: var(--nexus-surface);
	border: 1px solid var(--nexus-border);
	border-radius: 24px;
	box-shadow: var(--nexus-shadow);
	padding: 1.5rem;
}

.nexus-entry + .nexus-entry {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--nexus-border);
}

.entry-content,
.archive-description,
.comments-area {
	margin-top: 1rem;
}

.search-form {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.search-field,
.search-submit,
input,
textarea,
select,
button {
	font: inherit;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
	border: 1px solid var(--nexus-border);
	border-radius: 14px;
	padding: 0.75rem 0.9rem;
	min-width: 240px;
	background: #fff;
}

.search-submit,
button,
input[type="submit"] {
	border: 0;
	border-radius: 14px;
	padding: 0.8rem 1rem;
	background: var(--nexus-accent);
	color: #fff;
	cursor: pointer;
}

.nexus-footer-widgets {
	display: grid;
	gap: 1rem;
}

.footer-widgets-1 {
	grid-template-columns: 1fr;
}

.footer-widgets-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-widgets-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-widgets-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-widgets-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-info {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--nexus-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.screen-reader-text:focus {
	clip: auto;
	width: auto;
	height: auto;
	margin: 1rem;
	padding: 0.75rem 1rem;
	background: #fff;
	border-radius: 10px;
	z-index: 9999;
}

.nexus-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--nexus-accent);
	color: #fff;
	box-shadow: var(--nexus-shadow);
}

@media (min-width: 960px) {
	.nexus-content-shell {
		align-items: start;
	}
}

@media (max-width: 959px) {
	.nexus-footer-widgets {
		grid-template-columns: 1fr;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
	}

	.main-navigation.is-open ul {
		display: flex;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.nexus-content-shell,
	.nexus-content-shell.has-sidebar-grid.has-right-sidebar,
	.nexus-content-shell.has-sidebar-grid.has-left-sidebar:not(.has-right-sidebar),
	.nexus-content-shell.has-sidebar-grid.has-left-sidebar.has-right-sidebar {
		grid-template-columns: 1fr;
	}
}
