/**
 * Shared styles for all AbleGhana widgets (section spacing, section headings, editor hints).
 * Colours, fonts and buttons come from the theme's tokens.css / base.css.
 */

/* Our widgets are full-width sections. */
.elementor-widget[class*="elementor-widget-ag-"] {
	width: 100%;
	max-width: 100%;
}

.ag-w {
	position: relative;
}

.ag-w--pad-sm {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.ag-w--pad-md {
	padding-block: var(--ag-section-y, clamp(4rem, 8vw, 9rem));
}

.ag-w--pad-lg {
	padding-block: clamp(6rem, 11vw, 12rem);
}

/* ---------- Section heading block ---------- */
.ag-w__head {
	max-width: 46rem;
	margin-bottom: clamp(2.25rem, 4.5vw, 4.5rem);
}

.ag-w__head--center {
	margin-inline: auto;
	text-align: center;
}

.ag-w__head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	max-width: none;
}

.ag-w__head--split .ag-w__head-text {
	max-width: 46rem;
}

.ag-w__head-after {
	flex: none;
	padding-bottom: 0.5rem;
}

.ag-w__title {
	margin: 0;
}

.ag-w__intro {
	max-width: 40rem;
	margin: 1.5rem 0 0;
	color: var(--ag-graphite);
	font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
	line-height: 1.65;
}

.ag-w__head--center .ag-w__intro {
	margin-inline: auto;
}

.ag-dark .ag-w__intro {
	color: var(--ag-mist);
}

.ag-dark .ag-link {
	color: var(--ag-ivory);
}

/* ---------- Editor-only hints ---------- */
.ag-editor-note {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--ag-sand);
	color: var(--ag-graphite);
	font-size: var(--ag-small);
	line-height: 1.6;
}

.ag-dark .ag-editor-note {
	color: var(--ag-mist);
}

.ag-flag {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 5px 9px;
	background: var(--ag-charcoal);
	color: var(--ag-ivory);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ag-flag--inline {
	position: static;
	display: inline-block;
	margin-bottom: 1rem;
}

/* Elementor sets `.elementor img { height: auto }`, which stops photos from filling
   their frames. These selectors are specific enough to win inside Elementor pages. */
.elementor .ag-media img,
.elementor .ag-media video,
.elementor img.ag-hero__img,
.elementor img.ag-paths__img,
.elementor img.ag-ba__img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.elementor img.ag-testi__photo {
	width: 56px;
	height: 56px;
}
