/* Minimal supplemental CSS for layout details not easily expressed in theme.json. */
.wp-site-blocks {
	min-height: 100vh;
}

.theshu-header {
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}

.theshu-header-inner {
	gap: clamp(1rem, 4vw, 4rem);
}

.theshu-logo img {
	display: block;
	max-width: 160px;
	height: auto;
}

.theshu-post-card {
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
	padding-bottom: var(--wp--preset--spacing--40);
}

.theshu-post-card .wp-block-post-featured-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.theshu-rights,
.theshu-footer p {
	font-size: 0.8125rem;
	color: var(--wp--preset--color--dark-grey);
}

@media (max-width: 700px) {
	.theshu-header-inner {
		align-items: flex-start !important;
		gap: 1rem;
	}

	.theshu-logo img {
		max-width: 130px;
	}

	.theshu-post-card {
		grid-template-columns: 1fr !important;
	}

	.theshu-post-card .wp-block-post-featured-image,
	.theshu-post-card .wp-block-post-featured-image img {
		width: 100% !important;
		height: auto !important;
	}
}

.theshu-landing-hero {
	text-align: center;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}

.theshu-landing-hero h1 {
	margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
	letter-spacing: 0.02em;
}

.theshu-landing-hero p {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* Travels globe page */
.theshu-travels-page {
	min-height: 70vh;
}

.theshu-travels-hero {
	padding-top: clamp(3rem, 8vw, 7rem);
	padding-bottom: clamp(3rem, 8vw, 7rem);
	text-align: center;
}

.theshu-travels-hero h1 {
	margin-bottom: clamp(2rem, 5vw, 4rem);
	letter-spacing: -0.035em;
}

.theshu-travels-globe-wrap {
	width: min(42vw, 760px);
	min-width: 340px;
	margin: 0 auto;
	text-align: center;
}

#theshu-travels-globe {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.theshu-travels-note {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--dark-grey, #666666);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
}

@media (max-width: 900px) {
	.theshu-travels-globe-wrap {
		width: min(82vw, 640px);
	}
}

.theshu-travels-content {
	width: 100%;
}

.theshu-travels-content > .theshu-travels-hero {
	margin-left: auto;
	margin-right: auto;
}

/* v13 globe alignment fix: one exact square canvas, no background/overlay layer. */
.theshu-travels-globe-wrap {
	width: min(52vw, 760px);
	max-width: 760px;
	min-width: 340px;
	aspect-ratio: 1 / 1;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	background: transparent !important;
}

#theshu-travels-globe {
	display: block;
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1;
	background: transparent !important;
	border: 0;
	border-radius: 0;
}

@media (max-width: 900px) {
	.theshu-travels-globe-wrap {
		width: min(86vw, 680px);
	}
}

/* v14 travels globe hard reset: canvas-only, no overlay/background, exact matched size. */
.theshu-travels-globe-wrap,
.theshu-travels-globe-wrap * {
	box-sizing: border-box;
}

.theshu-travels-globe-wrap {
	width: min(760px, 52vw);
	height: min(760px, 52vw);
	min-width: 340px;
	min-height: 340px;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	background: transparent !important;
	border: 0 !important;
	overflow: visible;
}

#theshu-travels-globe {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 900px) {
	.theshu-travels-globe-wrap {
		width: min(86vw, 680px);
		height: min(86vw, 680px);
	}
}


/* v15 globe DPR alignment fix: canvas intrinsic size equals CSS size; no separate pin overlay. */
.theshu-travels-globe-wrap {
	width: min(760px, 52vw) !important;
	height: min(760px, 52vw) !important;
	min-width: 340px !important;
	min-height: 340px !important;
	margin: 0 auto !important;
	position: relative !important;
	background: transparent !important;
	border: 0 !important;
	overflow: visible !important;
}
#theshu-travels-globe {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 auto !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
@media (max-width: 900px) {
	.theshu-travels-globe-wrap {
		width: min(86vw, 680px) !important;
		height: min(86vw, 680px) !important;
	}
}

/* v16 private Travel Locations lookup helper */
.theshu-location-lookup {
	border: 1px solid var(--wp--preset--color--light-grey, #e5e5e5);
	border-radius: 16px;
	padding: clamp(1rem, 3vw, 1.75rem);
	margin: 0 0 2rem;
	background: #fafafa;
}

.theshu-location-lookup h2 {
	margin-top: 0;
}

.theshu-location-lookup-row {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 1rem;
}

.theshu-location-lookup input[type="text"] {
	flex: 1 1 260px;
	min-height: 42px;
	border: 1px solid var(--wp--preset--color--medium-grey, #999999);
	border-radius: 8px;
	padding: 0.55rem 0.75rem;
	font: inherit;
}

.theshu-location-lookup .button {
	min-height: 42px;
	border-radius: 8px;
	padding: 0.55rem 1rem;
	cursor: pointer;
}

.theshu-location-status {
	margin-top: 0.875rem;
	font-size: 0.925rem;
	color: var(--wp--preset--color--dark-grey, #666666);
}

.theshu-location-status.is-error {
	color: #9b1c1c;
}

.theshu-location-result {
	margin-top: 1rem;	
	display: grid;
	gap: 0.875rem;
}

.theshu-location-preview code {
	display: inline-block;
	margin-top: 0.35rem;
	white-space: normal;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--light-grey, #e5e5e5);
	border-radius: 8px;
	padding: 0.5rem 0.65rem;
}


/* v19 navigation underline treatment: words-only accent, no box border. */
.wp-block-navigation .wp-block-navigation-item__content {
	border-bottom: 2px solid var(--wp--preset--color--medium-grey, #b8b8b8);
	padding-bottom: 4px;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:focus {
	border-bottom-color: var(--wp--preset--color--dark-grey, #7f7f7f);
	text-decoration: none;
}

.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--black, #000000);
}

/* v28 persistent fixed header: keeps logo/menu visible while scrolling. */
:root {
	--theshu-sticky-header-offset: 0px;
	--theshu-sticky-header-height: 112px;
}

body.admin-bar {
	--theshu-sticky-header-offset: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--theshu-sticky-header-offset: 46px;
	}
}

body.theshu-has-fixed-header .wp-site-blocks {
	padding-top: var(--theshu-sticky-header-height) !important;
}

body.theshu-has-fixed-header .theshu-header,
body.theshu-has-fixed-header header.theshu-header {
	position: fixed !important;
	top: var(--theshu-sticky-header-offset) !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	z-index: 99999 !important;
	background: var(--wp--preset--color--white, #ffffff) !important;
	box-shadow: 0 1px 0 var(--wp--preset--color--light-grey, #e5e5e5) !important;
}

body.theshu-has-fixed-header .theshu-header-inner {
	width: min(1200px, calc(100vw - 2rem)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

@media (max-width: 700px) {
	:root {
		--theshu-sticky-header-height: 145px;
	}
}
