/*
Theme Name: EleEdit
Theme URI: https://eleedit.com/
Description: EleEdit is a lightweight, responsive, RTL-ready WordPress theme and Elementor Free theme builder. Create full-width global headers and footers with Entire Site display conditions, reusable templates, and Single and Archive layouts; use Nav Menu and Saved Template widgets; and keep native templates for posts, pages, archives, search, comments, and 404 pages. Includes custom logo and menu support, featured images, accessible navigation, local system fonts, and no WooCommerce dependency.
Version: 1.0.2
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
Author: EleEdit.com
Author URI: https://eleedit.com/
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eleedit
Tags: blog, one-column, custom-logo, custom-menu, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
	--eleedit-color-primary: #000080;
	--eleedit-color-accent: #e42121;
	--eleedit-color-supporting: #7a9b76;
	--eleedit-color-ink: #090302;
	--eleedit-color-surface: #fff;
	--eleedit-color-border: #d9dfd7;
	--eleedit-color-muted: #5a5a5a;
}

body {
	background: var(--eleedit-color-surface);
	color: var(--eleedit-color-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
	overflow-wrap: break-word;
}

.eleedit-template-preview,
.eleedit-template-preview__content {
	margin: 0;
	max-width: none;
	min-height: 0;
	padding: 0;
	width: 100%;
}

.eleedit-template-warning {
	background: #fff;
	border: 2px solid #e42121;
	color: #090302;
	font-weight: 600;
	margin-block: 1rem;
	padding: 1rem;
}

.eleedit-site-header *,
.eleedit-elementor-header *,
.eleedit-site-main *,
.eleedit-site-footer *,
.eleedit-elementor-footer * {
	box-sizing: border-box;
}

.eleedit-site-header,
.eleedit-elementor-header,
.eleedit-site-main,
.eleedit-site-footer,
.eleedit-elementor-footer {
	box-sizing: border-box;
	max-width: none;
	width: 100%;
}

.eleedit-skip-link {
	background: #090302;
	color: #fff;
	inset-block-start: 0;
	inset-inline-start: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	transform: translateY(-150%);
	z-index: 100000;
}

.eleedit-skip-link:focus {
	transform: translateY(0);
}

.eleedit-site-header {
	background: #fff;
	border-block-end: 1px solid #d9dfd7;
}

.eleedit-site-header__inner {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: none;
	padding: 1rem clamp(1rem, 4vw, 2rem);
	width: 100%;
}

.eleedit-site-branding .custom-logo {
	display: block;
	height: auto;
	max-height: 4rem;
	max-width: min(100%, 18rem);
	width: auto;
}

.eleedit-site-title {
	color: #000080;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 700;
	text-decoration: none;
}

.eleedit-primary-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eleedit-primary-navigation > ul,
.eleedit-primary-navigation > .menu > ul {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.eleedit-primary-navigation li {
	position: relative;
}

.eleedit-primary-navigation a {
	color: #090302;
	display: block;
	padding: 0.625rem 0.75rem;
	text-decoration: none;
}

.eleedit-primary-navigation a:hover,
.eleedit-primary-navigation a:focus-visible,
.eleedit-site-title:hover,
.eleedit-site-title:focus-visible {
	color: #e42121;
}

.eleedit-primary-navigation a:focus-visible,
.eleedit-site-title:focus-visible,
.eleedit-site-branding .custom-logo-link:focus-visible {
	outline: 2px solid #e42121;
	outline-offset: 3px;
}

.eleedit-primary-navigation .sub-menu {
	background: #fff;
	border: 1px solid #d9dfd7;
	box-shadow: 0 0.5rem 1.5rem rgb(9 3 2 / 12%);
	inset-inline-start: 0;
	min-width: 13rem;
	opacity: 0;
	padding: 0.375rem;
	position: absolute;
	inset-block-start: 100%;
	transform: translateY(0.5rem);
	transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
	visibility: hidden;
	z-index: 100;
}

.eleedit-primary-navigation li:hover > .sub-menu,
.eleedit-primary-navigation li:focus-within > .sub-menu {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.eleedit-primary-navigation .current-menu-item > a,
.eleedit-primary-navigation a[aria-current="page"] {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.2em;
}

@media (max-width: 48rem) {
	.eleedit-site-header__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 0.75rem;
	}

	.eleedit-primary-navigation > ul,
	.eleedit-primary-navigation > .menu > ul {
		align-items: stretch;
		flex-direction: column;
	}

	.eleedit-primary-navigation .sub-menu {
		border: 0;
		box-shadow: none;
		margin-inline-start: 1rem;
		opacity: 1;
		padding-block: 0;
		position: static;
		transform: none;
		visibility: visible;
	}
}

.eleedit-site-footer {
	background: #090302;
	color: #fff;
}

.eleedit-site-footer__inner {
	margin-inline: auto;
	max-width: none;
	padding: 1.25rem clamp(1rem, 4vw, 2rem);
	width: 100%;
}

.eleedit-site-footer__info {
	margin: 0;
	text-align: center;
}

.eleedit-site-footer__info a {
	color: #fff;
}

.eleedit-site-footer__info a:hover,
.eleedit-site-footer__info a:focus-visible {
	color: #e42121;
}

.eleedit-site-footer__info a:focus-visible {
	outline: 2px solid #e42121;
	outline-offset: 3px;
}

/* Keep each Elementor document's root canvas full width; nested boxed containers remain user-controlled. */
.eleedit-elementor-header > .elementor,
.eleedit-elementor-footer > .elementor,
.eleedit-entry__content > .elementor {
	max-width: none;
	width: 100%;
}

.eleedit-elementor-header > .elementor > .e-con.e-con-boxed > .e-con-inner,
.eleedit-elementor-footer > .elementor > .e-con.e-con-boxed > .e-con-inner,
.eleedit-entry__content > .elementor > .e-con.e-con-boxed > .e-con-inner,
.eleedit-elementor-header > .elementor > .elementor-section.elementor-section-boxed > .elementor-container,
.eleedit-elementor-footer > .elementor > .elementor-section.elementor-section-boxed > .elementor-container,
.eleedit-entry__content > .elementor > .elementor-section.elementor-section-boxed > .elementor-container {
	max-width: 100%;
}

.eleedit-site-main {
	margin-inline: 0;
	max-width: none;
	min-height: 50vh;
	padding: clamp(2rem, 6vw, 4rem) 0;
	width: 100%;
}

.eleedit-posts__list {
	display: grid;
	gap: 2rem;
}

.eleedit-entry,
.eleedit-no-results {
	color: #090302;
	max-width: none;
	width: 100%;
}

.eleedit-entry--summary {
	border-block-end: 1px solid #d9dfd7;
	padding-block-end: 2rem;
}

.eleedit-entry__title,
.eleedit-no-results__title {
	color: #000080;
	line-height: 1.2;
	margin-block: 0 1rem;
}

.eleedit-entry__title a {
	color: inherit;
	text-decoration: none;
}

.eleedit-entry__title a:hover,
.eleedit-entry__title a:focus-visible {
	color: #e42121;
}

.eleedit-entry__title a:focus-visible,
.eleedit-page-links a:focus-visible,
.eleedit-site-main .page-numbers:focus-visible {
	outline: 2px solid #e42121;
	outline-offset: 3px;
}

.eleedit-entry__thumbnail {
	display: block;
	margin-block-end: 1.5rem;
}

.eleedit-entry__thumbnail img {
	display: block;
	height: auto;
	max-width: 100%;
}

.eleedit-entry__content,
.eleedit-entry__summary {
	line-height: 1.7;
}

.eleedit-entry__content > :first-child,
.eleedit-entry__summary > :first-child {
	margin-block-start: 0;
}

.eleedit-entry__content > :last-child,
.eleedit-entry__summary > :last-child {
	margin-block-end: 0;
}

.eleedit-site-main .navigation.pagination,
.eleedit-page-links {
	margin-block-start: 2rem;
}

.eleedit-site-main .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.eleedit-site-main .page-numbers,
.eleedit-page-links a,
.eleedit-page-links > span {
	border: 1px solid #d9dfd7;
	color: #000080;
	display: inline-block;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
}

.eleedit-site-main .page-numbers.current,
.eleedit-site-main .page-numbers:hover,
.eleedit-page-links a:hover {
	background: #000080;
	color: #fff;
}

.eleedit-entry__meta {
	color: #5a5a5a;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin-block-end: 1.5rem;
}

.eleedit-entry__meta a {
	color: #000080;
}

.eleedit-entry__meta a:hover,
.eleedit-entry__meta a:focus-visible {
	color: #e42121;
}

.eleedit-entry__meta a:focus-visible,
.eleedit-post-navigation a:focus-visible {
	outline: 2px solid #e42121;
	outline-offset: 3px;
}

.eleedit-entry__featured-image {
	margin: 0 0 2rem;
}

.eleedit-entry__featured-image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.eleedit-single .post-navigation {
	border-block-start: 1px solid #d9dfd7;
	margin-block-start: 3rem;
	max-width: none;
	padding-block-start: 2rem;
	width: 100%;
}

.eleedit-single .nav-links {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eleedit-single .nav-next {
	text-align: end;
}

.eleedit-post-navigation__label,
.eleedit-post-navigation__title {
	display: block;
}

.eleedit-post-navigation__label {
	color: #5a5a5a;
	font-size: 0.875rem;
}

.eleedit-post-navigation__title {
	color: #000080;
	font-weight: 700;
}

@media (max-width: 36rem) {
	.eleedit-single .nav-links {
		grid-template-columns: 1fr;
	}

	.eleedit-single .nav-next {
		text-align: start;
	}
}

.eleedit-results-header {
	border-block-end: 1px solid #d9dfd7;
	margin-block-end: 2rem;
	max-width: none;
	padding-block-end: 1rem;
	width: 100%;
}

.eleedit-results-header__title {
	color: #000080;
	line-height: 1.2;
	margin-block: 0 0.75rem;
}

.eleedit-results-header__description {
	color: #5a5a5a;
	line-height: 1.7;
}

.eleedit-results-header__description > :first-child {
	margin-block-start: 0;
}

.eleedit-results-header__description > :last-child {
	margin-block-end: 0;
}

.eleedit-comments {
	border-block-start: 1px solid #d9dfd7;
	margin-block-start: 3rem;
	max-width: none;
	padding-block-start: 2rem;
	width: 100%;
}

.eleedit-comments__title,
.eleedit-not-found__title {
	color: #000080;
	line-height: 1.2;
}

.eleedit-comment-list {
	list-style: none;
	margin: 1.5rem 0;
	padding: 0;
}

.eleedit-comment-list .comment {
	border-block-start: 1px solid #d9dfd7;
	padding-block: 1.25rem;
}

.eleedit-comment-list .children {
	list-style: none;
	margin-inline-start: 1.5rem;
}

.eleedit-comments input:not([type="submit"]),
.eleedit-comments textarea,
.eleedit-not-found .search-field {
	border: 1px solid #7a9b76;
	max-width: 100%;
	padding: 0.625rem;
}

.eleedit-comments input:focus-visible,
.eleedit-comments textarea:focus-visible,
.eleedit-not-found input:focus-visible {
	outline: 2px solid #e42121;
	outline-offset: 2px;
}

.eleedit-comments input[type="submit"],
.eleedit-not-found .search-submit {
	background: #000080;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 0.6875rem 1rem;
}

.eleedit-comments input[type="submit"]:hover,
.eleedit-comments input[type="submit"]:focus-visible,
.eleedit-not-found .search-submit:hover,
.eleedit-not-found .search-submit:focus-visible {
	background: #e42121;
}

.eleedit-not-found {
	max-width: none;
	width: 100%;
}

.eleedit-not-found__content {
	line-height: 1.7;
}

.eleedit-entry__content a,
.eleedit-entry__summary a,
.eleedit-results-header__description a,
.eleedit-comments a,
.eleedit-not-found a {
	color: var(--eleedit-color-primary);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

.eleedit-entry__content a:hover,
.eleedit-entry__summary a:hover,
.eleedit-results-header__description a:hover,
.eleedit-comments a:hover,
.eleedit-not-found a:hover {
	color: var(--eleedit-color-accent);
}

.eleedit-site-header :focus-visible,
.eleedit-site-main :focus-visible,
.eleedit-site-footer :focus-visible {
	outline: 2px solid var(--eleedit-color-accent);
	outline-offset: 3px;
}

.eleedit-entry__content img,
.eleedit-entry__content video,
.eleedit-entry__content iframe,
.eleedit-entry__summary img,
.eleedit-comments img {
	max-width: 100%;
}

.eleedit-entry__content img,
.eleedit-entry__content video,
.eleedit-entry__summary img,
.eleedit-comments img {
	height: auto;
}

.eleedit-entry__content figure,
.eleedit-entry__summary figure {
	margin-inline: 0;
	max-width: 100%;
}

.eleedit-entry__content table {
	border-collapse: collapse;
	max-width: 100%;
	width: 100%;
}

.eleedit-entry__content th,
.eleedit-entry__content td {
	border: 1px solid var(--eleedit-color-border);
	padding: 0.625rem;
	text-align: start;
}

.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;
}

.screen-reader-text:focus {
	background: var(--eleedit-color-surface);
	clip: auto;
	clip-path: none;
	color: var(--eleedit-color-ink);
	display: block;
	height: auto;
	inset-block-start: 0.5rem;
	inset-inline-start: 0.5rem;
	padding: 0.75rem 1rem;
	width: auto;
	z-index: 100000;
}

/* WordPress-generated content classes. */
.sticky,
.bypostauthor {
	display: block;
}

.alignleft {
	float: inline-start;
	margin-block-end: 1rem;
	margin-inline-end: 1.5rem;
}

.alignright {
	float: inline-end;
	margin-block-end: 1rem;
	margin-inline-start: 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--eleedit-color-muted);
	font-size: 0.875rem;
}

@media (max-width: 48rem) {
	.eleedit-site-main {
		padding-block: 2rem;
	}

	.eleedit-entry,
	.eleedit-no-results,
	.eleedit-results-header,
	.eleedit-comments,
	.eleedit-not-found {
		max-width: 100%;
	}
}
