/**
 * AI Work Tools Guide – shared widget styles.
 *
 * Loaded as a dependency of every AIWTG widget stylesheet.
 * All selectors are scoped to .aiwtg-* classes and kept at low specificity
 * so Elementor control output ({{WRAPPER}} .x) always wins.
 *
 * Breakpoints follow Elementor defaults: tablet <= 1024px, mobile <= 767px.
 */

/* ---------------------------------------------------------------
   Design tokens
---------------------------------------------------------------- */
.aiwtg-widget {
	--aiwtg-primary: #014afb;
	--aiwtg-navy: #02164d;
	--aiwtg-cyan: #02c5cd;
	--aiwtg-text: #172033;
	--aiwtg-muted: #667085;
	--aiwtg-light: #f5f8ff;
	--aiwtg-border: #e7ecf5;
	--aiwtg-white: #fff;
	--aiwtg-primary-soft: #eef4ff;
	--aiwtg-radius: 14px;
	--aiwtg-container: 1180px;
	--aiwtg-gutter: 20px;
	--aiwtg-transition: 0.2s ease;

	font-family: var(--aiwtg-font-family, "Poppins"), sans-serif;
	font-size: 15px;
	line-height: 1.7;
	color: var(--aiwtg-text);
}

.aiwtg-widget,
.aiwtg-widget *,
.aiwtg-widget *::before,
.aiwtg-widget *::after {
	box-sizing: border-box;
}

.aiwtg-widget :where(h1, h2, h3, h4, h5, h6, p, ul, ol, figure) {
	margin: 0;
}

.aiwtg-widget :where(h1, h2, h3, h4, h5, h6) {
	font-family: inherit;
	color: var(--aiwtg-navy);
}

.aiwtg-widget :where(ul, ol) {
	padding: 0;
	list-style: none;
}

.aiwtg-widget :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
}

.aiwtg-widget :where(a) {
	color: inherit;
	text-decoration: none;
}

.aiwtg-widget :where(a, button, input):focus-visible {
	outline: 2px solid var(--aiwtg-primary);
	outline-offset: 3px;
}

.aiwtg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------
   Section band + container
---------------------------------------------------------------- */
.aiwtg-section {
	padding: 78px 0;
}

.aiwtg-container {
	width: 100%;
	max-width: calc(var(--aiwtg-container) + (var(--aiwtg-gutter) * 2));
	margin: 0 auto;
	padding-left: var(--aiwtg-gutter);
	padding-right: var(--aiwtg-gutter);
}

/* ---------------------------------------------------------------
   Section heading
---------------------------------------------------------------- */
.aiwtg-section-heading {
	max-width: 700px;
	margin-bottom: 35px;
}

.aiwtg-section-heading__title {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: var(--aiwtg-navy);
}

.aiwtg-section-heading__text {
	font-size: 15px;
	color: var(--aiwtg-muted);
}

/* ---------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */
.aiwtg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: 9px;
	cursor: pointer;
	transition: background-color var(--aiwtg-transition), border-color var(--aiwtg-transition), color var(--aiwtg-transition), transform var(--aiwtg-transition);
}

.aiwtg-btn__icon {
	display: inline-flex;
	line-height: 1;
}

.aiwtg-btn__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.aiwtg-btn--primary {
	color: #fff;
	background-color: var(--aiwtg-primary);
	box-shadow: 0 8px 22px rgba(1, 74, 251, 0.18);
}

.aiwtg-btn--primary:hover,
.aiwtg-btn--primary:focus-visible {
	color: #fff;
	background-color: var(--aiwtg-navy);
	transform: translateY(-1px);
}

.aiwtg-btn--light {
	color: var(--aiwtg-navy);
	background-color: #fff;
	border-color: var(--aiwtg-border);
}

.aiwtg-btn--light:hover,
.aiwtg-btn--light:focus-visible {
	color: var(--aiwtg-primary);
	border-color: var(--aiwtg-primary);
}

/* ---------------------------------------------------------------
   Breadcrumbs (archive + post headers)
---------------------------------------------------------------- */
.aiwtg-breadcrumbs {
	margin-bottom: 18px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--aiwtg-muted);
}

.aiwtg-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--aiwtg-ah-justify, flex-start);
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aiwtg-breadcrumbs__item + .aiwtg-breadcrumbs__item::before {
	content: "/";
	margin: 0 8px;
	color: #b3bccb;
}

.aiwtg-breadcrumbs a {
	color: var(--aiwtg-navy);
	font-weight: 500;
	transition: color var(--aiwtg-transition);
}

.aiwtg-breadcrumbs a:hover,
.aiwtg-breadcrumbs a:focus-visible {
	color: var(--aiwtg-primary);
}

/* ---------------------------------------------------------------
   Shared icon box (category icon, card media icon, etc.)
---------------------------------------------------------------- */
.aiwtg-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------------------------------------------------------------
   Responsive defaults
---------------------------------------------------------------- */
@media (max-width: 767px) {
	.aiwtg-widget {
		--aiwtg-gutter: 14px;
	}

	.aiwtg-section {
		padding: 58px 0;
	}

	.aiwtg-section-heading__title {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aiwtg-widget *,
	.aiwtg-widget *::before,
	.aiwtg-widget *::after {
		transition: none !important;
	}
}
