/**
 * A2Z footer/sidebar widgets — DM Sans, no heading tags (titles use .a2z-widget__title).
 */

.a2z-widget {
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #0f172a;
	box-sizing: border-box;
}

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

/* Shared “title” — semantic <p>, looks like small eyebrow / label */
.a2z-widget__title {
	margin: 0 0 1.1rem;
	padding: 0.35rem 0.9rem;
	display: inline-block;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--a2z-widget-accent, #2563eb);
	background: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 12%, #fff);
	line-height: 1.3;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-widget__title {
		background: #eff6ff;
	}
}

.a2z-widget__text {
	margin: 0 0 0.65rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: #64748b;
}

.a2z-widget__text:last-child {
	margin-bottom: 0;
}

.a2z-widget__text--lead {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
}

/* ---------- About ---------- */
.a2z-w-about__brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.a2z-w-about__logo {
	display: block;
	width: auto;
	max-width: 160px;
	max-height: 48px;
	object-fit: contain;
}

.a2z-w-about__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.25;
}

.a2z-w-about__link {
	display: inline-flex;
	margin-top: 0.75rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--a2z-widget-accent, #2563eb);
	text-decoration: none;
	transition: color 0.15s ease, transform 0.15s ease;
}

.a2z-w-about__link:hover {
	color: #1d4ed8;
	transform: translateX(2px);
}

.a2z-w-about__link::after {
	content: " →";
	font-weight: 700;
}

/* ---------- Menu links ---------- */
.a2z-w-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.a2z-w-menu__item {
	margin: 0;
}

.a2z-w-menu__link {
	display: block;
	padding: 0.55rem 0.65rem;
	margin-inline: -0.65rem;
	border-radius: 0.65rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	text-decoration: none;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.a2z-w-menu__link:hover,
.a2z-w-menu__link:focus-visible {
	background: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 9%, #fff);
	color: var(--a2z-widget-accent, #2563eb);
	transform: translateX(3px);
	outline: none;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-w-menu__link:hover,
	.a2z-w-menu__link:focus-visible {
		background: #eff6ff;
	}
}

/* ---------- Popular posts (premium — matches single-post / author card) ---------- */
.a2z-w-popular--premium {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

.a2z-w-popular--premium .a2z-widget__title {
	align-self: center;
	text-align: center;
	margin-inline: auto;
}

.a2z-w-popular__card {
	padding: clamp(1rem, 2.5vw, 1.25rem);
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: clamp(1.1rem, 2.5vw, 1.35rem);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.85) inset,
		0 14px 40px rgba(15, 23, 42, 0.07);
}

.a2z-w-popular__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.a2z-w-popular__item {
	margin: 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.65rem;
	min-height: 3.75rem;
	padding: 0.65rem 0.75rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.85rem;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.a2z-w-popular__item:hover {
	border-color: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 28%, #e2e8f0);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
	transform: translateY(-2px);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-w-popular__item:hover {
		border-color: #bfdbfe;
	}
}

.a2z-w-popular__rank {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 0.5rem;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	color: var(--a2z-widget-accent, #2563eb);
	background: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 12%, #fff);
	border: 1px solid color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 22%, #e2e8f0);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-w-popular__rank {
		background: #eff6ff;
		border-color: #dbeafe;
	}
}

.a2z-w-popular__thumb {
	flex-shrink: 0;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 0.7rem;
	overflow: hidden;
	background: #e2e8f0;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.a2z-w-popular__thumb--placeholder {
	background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.a2z-w-popular__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.a2z-w-popular__body {
	min-width: 0;
	flex: 1;
	text-align: left;
}

.a2z-w-popular__link-wrap {
	margin: 0 0 0.25rem;
}

.a2z-w-popular__link {
	display: inline;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.a2z-w-popular__link:hover {
	color: var(--a2z-widget-accent, #2563eb);
}

.a2z-w-popular__meta {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
}

.a2z-w-popular__meta time {
	text-decoration: none;
}

/* ---------- Single author (premium card, single column, large avatar) ---------- */
.a2z-w-author {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	gap: 0.75rem;
}

.a2z-w-author--premium .a2z-widget__title {
	align-self: center;
	text-align: center;
}

.a2z-w-author__card {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(0.85rem, 2vw, 1.15rem);
	padding: clamp(1.35rem, 4vw, 1.85rem) clamp(1.1rem, 3vw, 1.5rem);
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	border-radius: clamp(1.1rem, 2.5vw, 1.45rem);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.8) inset,
		0 14px 40px rgba(15, 23, 42, 0.07);
}

.a2z-w-author__avatar-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 0.35rem 0 0.15rem;
}

.a2z-w-author__avatar-ring {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(12.25rem, calc(100% + 14px));
	aspect-ratio: 1;
	border-radius: 50%;
	background: linear-gradient(
		145deg,
		var(--a2z-widget-accent, #2563eb) 0%,
		#38bdf8 45%,
		#a78bfa 100%
	);
	opacity: 0.95;
	z-index: 0;
	box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22);
}

.a2z-w-author--premium .a2z-w-author__avatar {
	position: relative;
	z-index: 1;
	width: min(11.25rem, 100%);
	max-width: 100%;
	margin-inline: auto;
	height: auto;
	aspect-ratio: 1;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
	background: #e2e8f0;
}

.a2z-w-author--premium .a2z-w-author__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.a2z-w-author__meta {
	width: 100%;
	max-width: 22rem;
}

.a2z-w-author__name {
	margin: 0 0 0.25rem;
	font-size: clamp(1.15rem, 2.8vw, 1.35rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #0f172a;
	line-height: 1.2;
}

.a2z-w-author__role {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #64748b;
}

.a2z-w-author__bio {
	margin: 0;
	max-width: 24rem;
	font-size: 0.92rem;
	line-height: 1.65;
	color: #475569;
}

.a2z-w-author__more {
	margin: 0;
	width: 100%;
}

.a2z-w-author__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 11rem;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 700;
	color: #fff !important;
	background: var(--a2z-widget-accent, #2563eb) !important;
	text-decoration: none !important;
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.a2z-w-author__cta::after {
	content: "→";
	font-weight: 700;
	opacity: 0.9;
}

.a2z-w-author__cta:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
}

.a2z-w-author__cta:focus-visible {
	outline: 2px solid var(--a2z-widget-accent, #2563eb);
	outline-offset: 3px;
}

/* ---------- Social (Remix Icon font) ---------- */
.a2z-w-social__intro {
	margin: -0.35rem 0 1.1rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #64748b;
	font-weight: 500;
}

.a2z-w-social__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.a2z-w-social__item {
	margin: 0;
}

.a2z-w-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 0.75rem;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
	text-decoration: none;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
	transition:
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		transform 0.2s ease;
}

.a2z-w-social__link:hover,
.a2z-w-social__link:focus-visible {
	background: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 10%, #fff);
	border-color: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 35%, #e2e8f0);
	color: var(--a2z-widget-accent, #2563eb);
	box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
	transform: translateY(-2px);
	outline: none;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-w-social__link:hover,
	.a2z-w-social__link:focus-visible {
		background: #eff6ff;
		border-color: #bfdbfe;
	}
}

.a2z-w-social__icon {
	font-size: 1.28rem;
	line-height: 1;
	display: block;
	font-style: normal;
}

/* ---------- Newsletter (Fluent Forms + generic form) ---------- */
.a2z-w-newsletter__intro {
	margin: -0.35rem 0 1rem;
	font-size: 0.88rem;
	line-height: 1.55;
	color: #64748b;
	font-weight: 500;
}

.a2z-w-newsletter__form {
	margin-top: 0.25rem;
}

.a2z-w-newsletter__form .fluentform,
.a2z-w-newsletter__form .frm-fluent-form,
.a2z-w-newsletter__form > form {
	font-family: inherit;
}

.a2z-w-newsletter__form .ff-el-group,
.a2z-w-newsletter__form .fluentform .ff-el-group {
	margin-bottom: 0.85rem;
}

.a2z-w-newsletter__form .ff-el-form-top .ff-el-input--label label,
.a2z-w-newsletter__form .ff-el-form-top label.ff-el-form--label,
.a2z-w-newsletter__form label.ff-el-form--label,
.a2z-w-newsletter__form .ff-el-input--label label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

.a2z-w-newsletter__form input[type="text"],
.a2z-w-newsletter__form input[type="email"],
.a2z-w-newsletter__form input[type="tel"],
.a2z-w-newsletter__form input[type="url"],
.a2z-w-newsletter__form input[type="number"],
.a2z-w-newsletter__form select,
.a2z-w-newsletter__form textarea {
	width: 100% !important;
	max-width: 100%;
	padding: 0.75rem 0.95rem !important;
	font-family: inherit !important;
	font-size: 0.92rem !important;
	font-weight: 500;
	color: #0f172a !important;
	background: #fff !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 0.65rem !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.a2z-w-newsletter__form textarea {
	min-height: 5rem;
	resize: vertical;
}

.a2z-w-newsletter__form input:focus,
.a2z-w-newsletter__form select:focus,
.a2z-w-newsletter__form textarea:focus {
	outline: none !important;
	border-color: color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 45%, #e2e8f0) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--a2z-widget-accent, #2563eb) 18%, transparent) !important;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	.a2z-w-newsletter__form input:focus,
	.a2z-w-newsletter__form select:focus,
	.a2z-w-newsletter__form textarea:focus {
		border-color: #93c5fd !important;
		box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
	}
}

.a2z-w-newsletter__form .ff-el-group--check,
.a2z-w-newsletter__form .ff-el-form-check {
	font-size: 0.82rem;
	line-height: 1.45;
	color: #64748b;
}

.a2z-w-newsletter__form .ff-el-form-check input[type="checkbox"],
.a2z-w-newsletter__form input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--a2z-widget-accent, #2563eb);
	vertical-align: middle;
	margin-right: 0.35rem;
}

.a2z-w-newsletter__form button[type="submit"],
.a2z-w-newsletter__form input[type="submit"],
.a2z-w-newsletter__form .ff-btn-submit,
.a2z-w-newsletter__form .fluentform .ff-btn-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.8rem 1.5rem !important;
	font-family: inherit !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	color: #fff !important;
	background: var(--a2z-widget-accent, #2563eb) !important;
	border: none !important;
	border-radius: 999px !important;
	cursor: pointer;
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
	transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.a2z-w-newsletter__form button[type="submit"]:hover,
.a2z-w-newsletter__form input[type="submit"]:hover,
.a2z-w-newsletter__form .ff-btn-submit:hover {
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
}

.a2z-w-newsletter__form button[type="submit"]:focus-visible,
.a2z-w-newsletter__form .ff-btn-submit:focus-visible {
	outline: 2px solid var(--a2z-widget-accent, #2563eb);
	outline-offset: 2px;
}

.a2z-w-newsletter__form .ff-errors-in-stack,
.a2z-w-newsletter__form .error.text-danger,
.a2z-w-newsletter__form .ff-error-inline {
	font-size: 0.8rem;
	color: #b91c1c;
	margin-top: 0.25rem;
}

.a2z-w-newsletter__form .ff-el-progress {
	margin-top: 0.75rem;
	border-radius: 999px;
	overflow: hidden;
}
