/* =========================================================
   TCI Site Enhancements — Global Design System
   ========================================================= */

:root {
	--tci-bg-cream: oklch(0.97 0.008 75);
	--tci-text-charcoal: #333333;
	--tci-accent-teal: #2cc4e7;
	--tci-accent-sand-gold: oklch(0.72 0.12 75);
	--tci-cta-coral: #EA580C;
	--tci-cta-coral-hover: #c94a09;
}

/* ---------- Base typography & color ---------- */
body {
	background-color: var(--tci-bg-cream);
	color: var(--tci-text-charcoal);
	font-family: 'DM Sans', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-heading {
	font-family: 'Playfair Display', Georgia, serif;
	color: var(--tci-text-charcoal);
}

a {
	color: var(--tci-accent-teal);
	text-decoration-color: var(--tci-accent-teal);
}

a:hover,
a:focus {
	color: var(--tci-accent-teal);
	opacity: 0.85;
}

/* Active / current menu item uses the teal accent */
.wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation-item.current-menu-item > a,
nav a[aria-current="page"] {
	color: var(--tci-accent-teal) !important;
	border-bottom: 2px solid var(--tci-accent-teal);
}

/* Borders and badges use the sand-gold accent */
.tci-se-announcement-bar,
blockquote,
.wp-block-quote,
hr {
	border-color: var(--tci-accent-sand-gold);
}

.wp-block-table,
table,
img,
.wp-block-image,
.wp-block-group,
.wp-block-cover {
	border-color: var(--tci-accent-sand-gold);
}

.badge,
.tci-badge {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--tci-accent-sand-gold);
	background: color-mix(in oklab, var(--tci-accent-sand-gold) 15%, white);
	color: var(--tci-text-charcoal);
	border-radius: 999px;
	font-size: 0.8em;
}

/* ---------- Reusable CTA button ---------- */
.btn-cta {
	display: inline-block;
	background-color: var(--tci-cta-coral);
	color: #ffffff;
	font-family: 'DM Sans', sans-serif;
	font-weight: 700;
	padding: 12px 28px;
	border-radius: 999px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover,
.btn-cta:focus {
	background-color: var(--tci-cta-coral-hover);
	color: #ffffff;
	transform: translateY(-1px);
}

/* ---------- Global image styling ---------- */
.entry-content img,
.wp-block-post-content img,
.wp-block-image img,
article img {
	border-radius: 8px;
}

.wp-block-group,
.wp-block-cover,
.wp-block-media-text,
.card,
.tci-card {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	border-radius: 8px;
}

/* ---------- Subtle custom cursor (desktop only) ---------- */
@media (hover: hover) and (pointer: fine) {
	body {
		cursor: url('palm-cursor.svg') 12 12, auto;
	}
	a,
	button,
	.btn-cta,
	input[type="submit"] {
		cursor: url('palm-cursor.svg') 12 12, pointer;
	}
}

/* Touch devices always fall back to default system cursor */
@media (hover: none), (pointer: coarse) {
	body, a, button, .btn-cta {
		cursor: auto;
	}
}

/* ---------- Announcement bar (wp_body_open) ---------- */
.tci-se-announcement-bar {
	width: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 9999;
	padding: 6px 16px;
	text-align: center;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--tci-text-charcoal);
	background: linear-gradient(90deg, color-mix(in oklab, var(--tci-accent-sand-gold) 55%, white) 0%, color-mix(in oklab, var(--tci-accent-teal) 35%, white) 100%);
	border-bottom: 1px solid var(--tci-accent-sand-gold);
}

/* ---------- Ad zone placeholders (hidden by default) ----------
   To activate a zone: remove/override "display: none" for the relevant
   selector below (e.g. in a child theme or Additional CSS panel) once you
   have real ad code/creatives ready to serve, e.g.:
   .ad-zone-leaderboard { display: flex !important; }
------------------------------------------------------------------ */

.ad-zone-leaderboard {
	display: none; /* set to flex/block to activate */
	width: 100%;
	max-width: 728px;
	height: 90px;
	margin: 10px auto;
	align-items: center;
	justify-content: center;
	background: rgba(51, 51, 51, 0.04);
	border: 1px dashed var(--tci-accent-sand-gold);
	border-radius: 4px;
}

.ad-zone-incontent {
	display: none; /* set to block to activate */
	width: 100%;
	min-height: 300px;
	margin: 24px 0;
	align-items: center;
	justify-content: center;
	background: rgba(51, 51, 51, 0.04);
	border: 1px dashed var(--tci-accent-sand-gold);
	border-radius: 4px;
}

.ad-zone-sidebar {
	display: none; /* set to block to activate */
	width: 300px;
	min-height: 250px;
	margin: 0 0 24px;
	background: rgba(51, 51, 51, 0.04);
	border: 1px dashed var(--tci-accent-sand-gold);
	border-radius: 4px;
	position: -webkit-sticky;
	position: sticky;
	top: 90px;
}

@media (min-width: 1024px) {
	.ad-zone-sidebar {
		height: 600px;
		min-height: 600px;
	}
}

@media (max-width: 728px) {
	.ad-zone-leaderboard {
		height: auto;
		min-height: 60px;
	}
}
