/**
 * FlyUp Base structural stylesheet.
 *
 * Policy:
 * - no site-wide brand colors or typography
 * - no Elementor, WooCommerce, JetEngine or FlyUp plugin widget overrides
 * - no external assets
 * - fallback UI styles are scoped to flyup-base-* classes
 */

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

:where(html) {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

:where(body) {
	margin: 0;
}

:where(img, picture, video) {
	max-width: 100%;
	height: auto;
}

:where([hidden]) {
	display: none !important;
}

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

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 100000;
	background: #ffffff;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	text-decoration: none;
}

.flyup-base-shell,
.flyup-base-container {
	width: min(
		calc(100% - (var(--flyup-base-gutter, 40px) * 2)),
		var(--flyup-base-content, 1280px)
	);
	margin-inline: auto;
}

.flyup-base-shell,
.flyup-base-container--wide {
	max-width: var(--flyup-base-wide, 1680px);
	width: min(
		calc(100% - (var(--flyup-base-gutter, 40px) * 2)),
		var(--flyup-base-wide, 1680px)
	);
}

.flyup-base-container--readable {
	max-width: var(--flyup-base-readable, 820px);
}

/* legacy selector replaced below */

.flyup-base-main:not(.flyup-base-main--full-width) {
	min-height: 45vh;
	padding-block: clamp(1.75rem, 4vw, 3.5rem);
}

.flyup-base-elementor-main {
	width: 100%;
}

/* Fallback header/footer only. Elementor theme locations are untouched. */
.flyup-base-header {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
}

.flyup-base-header__inner,
.flyup-base-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
}

.flyup-base-header__inner {
	min-height: 72px;
	padding-block: 0.75rem;
}

.flyup-base-branding {
	min-width: 0;
}

.flyup-base-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.flyup-base-header .custom-logo {
	display: block;
	width: auto;
	max-width: min(240px, 55vw);
	max-height: 52px;
}

.flyup-base-site-title {
	display: inline-block;
	color: #111827;
	font-size: 1.25rem;
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
}

.flyup-base-navigation,
.flyup-base-footer-navigation {
	min-width: 0;
}

.flyup-base-menu,
.flyup-base-footer-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.flyup-base-menu li,
.flyup-base-footer-menu li {
	position: relative;
	margin: 0;
}

.flyup-base-menu a,
.flyup-base-footer-menu a {
	display: block;
	padding: 0.55rem 0.7rem;
	color: #374151;
	text-decoration: none;
	border-radius: 0.375rem;
}

.flyup-base-menu a:hover,
.flyup-base-menu a:focus-visible,
.flyup-base-footer-menu a:hover,
.flyup-base-footer-menu a:focus-visible,
.flyup-base-site-title:focus-visible {
	color: #111827;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.flyup-base-menu a:focus-visible,
.flyup-base-footer-menu a:focus-visible,
.flyup-base-site-title:focus-visible,
.flyup-base-search-field:focus-visible,
.flyup-base-search-submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.flyup-base-menu .sub-menu {
	position: absolute;
	z-index: 20;
	inset-block-start: 100%;
	inset-inline-start: 0;
	display: none;
	min-width: 210px;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 12px 28px rgb(15 23 42 / 10%);
}

.flyup-base-menu .menu-item-has-children:hover > .sub-menu,
.flyup-base-menu .menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.flyup-base-menu .sub-menu a {
	white-space: normal;
}

.flyup-base-footer {
	background: #f8fafc;
	border-top: 1px solid #e5e7eb;
}

.flyup-base-footer__inner {
	min-height: 72px;
	padding-block: 1rem;
}

.flyup-base-copyright {
	margin: 0;
	color: #64748b;
	font-size: 0.9375rem;
}

/* Native WordPress fallback content. */
.flyup-base-archive-header {
	margin-block-end: 2rem;
}

.flyup-base-archive-title,
.flyup-base-entry-title,
.flyup-base-comments-title,
.flyup-base-error-404 h1 {
	margin-block: 0 0.75rem;
	color: #111827;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.flyup-base-archive-title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.flyup-base-entry-title {
	font-size: clamp(1.35rem, 3vw, 2rem);
}

.flyup-base-entry-title a {
	color: inherit;
	text-decoration: none;
}

.flyup-base-entry-title a:hover,
.flyup-base-entry-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.flyup-base-archive-description,
.flyup-base-entry-summary,
.flyup-base-error-404 p {
	color: #475569;
	line-height: 1.7;
}

.flyup-base-entry {
	padding-block-end: 2rem;
	border-bottom: 1px solid #e5e7eb;
}

.flyup-base-entry + .flyup-base-entry {
	margin-block-start: 2rem;
}

.flyup-base-entry--single {
	padding-block-end: 0;
	border-bottom: 0;
}

.flyup-base-entry-content > :first-child,
.flyup-base-entry-summary > :first-child,
.flyup-base-archive-description > :first-child {
	margin-block-start: 0;
}

.flyup-base-entry-content > :last-child,
.flyup-base-entry-summary > :last-child,
.flyup-base-archive-description > :last-child {
	margin-block-end: 0;
}

.flyup-base-entry-content > p,
.flyup-base-entry-content > ul,
.flyup-base-entry-content > ol,
.flyup-base-entry-content > blockquote {
	line-height: 1.75;
}

.flyup-base-entry-content > pre,
.flyup-base-entry-content > .wp-block-code {
	max-width: 100%;
	overflow-x: auto;
}

.flyup-base-entry-content > table,
.flyup-base-entry-content > .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

.flyup-base-entry-content iframe {
	max-width: 100%;
}

.alignwide {
	max-width: 1440px;
	margin-inline: auto;
}

.alignfull {
	width: 100%;
	max-width: none;
}

/* Pagination. */
.flyup-base-main > .flyup-base-container > .navigation.pagination,
.flyup-base-comments > .navigation.comments-navigation {
	margin-block-start: 2rem;
}

.flyup-base-main > .flyup-base-container > .navigation.pagination .nav-links,
.flyup-base-comments > .navigation.comments-navigation .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.flyup-base-main > .flyup-base-container > .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding-inline: 0.625rem;
	border: 1px solid #d1d5db;
	border-radius: 0.375rem;
	color: #374151;
	text-decoration: none;
}

.flyup-base-main > .flyup-base-container > .navigation.pagination .page-numbers.current {
	font-weight: 700;
	border-color: #94a3b8;
}

/* Native comment fallback. */
.flyup-base-comments {
	margin-block-start: 3rem;
	padding-block-start: 2rem;
	border-top: 1px solid #e5e7eb;
}

.flyup-base-comment-list {
	padding-inline-start: 1.5rem;
}

.flyup-base-comment-list li {
	margin-block: 1rem;
}

/* Native search fallback. */
.flyup-base-search-form {
	display: flex;
	align-items: stretch;
	gap: 0.625rem;
	max-width: 620px;
}

.flyup-base-search-form label {
	flex: 1 1 auto;
	min-width: 0;
}

.flyup-base-search-field,
.flyup-base-search-submit {
	min-height: 44px;
	font: inherit;
	border-radius: 0.4rem;
}

.flyup-base-search-field {
	width: 100%;
	padding: 0.65rem 0.75rem;
	color: #111827;
	background: #ffffff;
	border: 1px solid #cbd5e1;
}

.flyup-base-search-submit {
	padding: 0.65rem 1rem;
	color: #ffffff;
	background: #1f2937;
	border: 1px solid #1f2937;
	cursor: pointer;
}

.flyup-base-error-404 {
	max-width: 680px;
	margin-inline: auto;
	padding-block: clamp(2rem, 7vw, 6rem);
	text-align: center;
}

.flyup-base-error-404 .flyup-base-search-form {
	margin: 1.5rem auto 0;
	text-align: start;
}

@media (max-width: 767px) {
	.flyup-base-header__inner,
	.flyup-base-footer__inner {
		align-items: stretch;
		flex-direction: column;
		justify-content: flex-start;
	}

	.flyup-base-header__inner {
		padding-block: 0.875rem;
	}

	.flyup-base-menu,
	.flyup-base-footer-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0.125rem;
	}

	.flyup-base-menu a,
	.flyup-base-footer-menu a {
		padding-inline: 0;
	}

	.flyup-base-menu .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		margin-inline-start: 1rem;
		padding: 0 0 0 0.75rem;
		background: transparent;
		border: 0;
		border-inline-start: 1px solid #e5e7eb;
		border-radius: 0;
		box-shadow: none;
	}

	.flyup-base-footer__inner {
		padding-block: 1.25rem;
	}

	.flyup-base-search-form {
		flex-direction: column;
	}

	.flyup-base-search-submit {
		width: 100%;
	}
}
