/* Fleet tools hub + iframe embed pages */

body.autonemo-tools-page-active {
	background: #f3f5f9;
}

body.autonemo-tools-page-active .page-content-wrapper {
	padding-top: 28px;
}

.autonemo-tools-page {
	max-width: none;
	padding: 0 0 56px;
	background: transparent !important;
}

.autonemo-tools-shell {
	width: 100%;
	max-width: var(--autonemo-site-width, 1320px);
	margin: 0 auto;
}

.autonemo-tools-eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 10px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(226, 35, 26, 0.08);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--autonemo-red) !important;
	-webkit-text-fill-color: var(--autonemo-red) !important;
}

.autonemo-tools-hero {
	margin: 0 0 24px;
	padding: 24px 24px 22px;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(226, 35, 26, 0.06) 0%, rgba(255, 255, 255, 0) 42%),
		#fff;
	border: 1px solid #e6ebf2;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.autonemo-tools-hero h1,
.autonemo-tools-detail-head h1 {
	margin: 0 0 10px;
	font-size: clamp(1.65rem, 3.5vw, 2.2rem);
	line-height: 1.15;
	color: var(--autonemo-black) !important;
	-webkit-text-fill-color: var(--autonemo-black) !important;
}

.autonemo-tools-lead {
	max-width: 720px;
	margin: 0;
	font-size: clamp(0.95rem, 1.8vw, 1.05rem);
	line-height: 1.6;
	color: var(--autonemo-ash-text) !important;
	-webkit-text-fill-color: var(--autonemo-ash-text) !important;
}

.autonemo-tools-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.autonemo-tool-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 22px 22px 18px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e6ebf2;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.autonemo-tool-card:hover {
	border-color: rgba(226, 35, 26, 0.25);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	transform: translateY(-2px);
}

.autonemo-tool-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 14px;
	border-radius: 12px;
	background: rgba(226, 35, 26, 0.08);
	color: var(--autonemo-red);
	font-size: 1rem;
}

.autonemo-tool-card__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--autonemo-black) !important;
	-webkit-text-fill-color: var(--autonemo-black) !important;
}

.autonemo-tool-card__subtitle {
	margin: 0 0 10px;
	font-family: "Hind Siliguri", system-ui, sans-serif;
	font-size: 0.98rem;
	line-height: 1.45;
	color: #4b5563 !important;
	-webkit-text-fill-color: #4b5563 !important;
}

.autonemo-tool-card__text {
	flex: 1;
	margin: 0 0 16px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--autonemo-ash-text) !important;
	-webkit-text-fill-color: var(--autonemo-ash-text) !important;
}

.autonemo-tool-card__link {
	align-self: flex-start;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--autonemo-red) !important;
	-webkit-text-fill-color: var(--autonemo-red) !important;
	text-decoration: none;
}

.autonemo-tool-card__link:hover {
	text-decoration: underline;
}

.autonemo-tools-hub-foot {
	margin: 22px 0 0;
	font-size: 0.95rem;
	color: var(--autonemo-ash-text) !important;
	-webkit-text-fill-color: var(--autonemo-ash-text) !important;
}

.autonemo-tools-hub-foot a {
	font-weight: 700;
	color: var(--autonemo-red) !important;
	-webkit-text-fill-color: var(--autonemo-red) !important;
}

/* Detail page */
.autonemo-tools-back {
	margin: 0 0 14px;
	font-size: 0.88rem;
}

.autonemo-tools-back a {
	color: var(--autonemo-ash-text) !important;
	-webkit-text-fill-color: var(--autonemo-ash-text) !important;
	text-decoration: none;
	font-weight: 600;
}

.autonemo-tools-back a:hover {
	color: var(--autonemo-red) !important;
	-webkit-text-fill-color: var(--autonemo-red) !important;
}

.autonemo-tools-detail-head {
	margin: 0 0 20px;
	padding: 22px 22px 20px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid #e6ebf2;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.autonemo-tools-detail-subtitle {
	margin: 0 0 10px;
	font-family: "Hind Siliguri", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #374151 !important;
	-webkit-text-fill-color: #374151 !important;
}

.autonemo-tools-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.autonemo-tools-detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 18px;
}

.autonemo-tools-panel {
	padding: 20px 20px 16px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e6ebf2;
}

.autonemo-tools-panel h2 {
	margin: 0 0 12px;
	font-size: 1.05rem;
	color: var(--autonemo-black) !important;
	-webkit-text-fill-color: var(--autonemo-black) !important;
}

.autonemo-tools-list {
	margin: 0;
	padding-left: 1.15rem;
}

.autonemo-tools-list li {
	margin-bottom: 8px;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--autonemo-ash-text) !important;
	-webkit-text-fill-color: var(--autonemo-ash-text) !important;
}

.autonemo-tools-list li:last-child {
	margin-bottom: 0;
}

/* Compact responsive iframe panel */
.autonemo-tool-iframe-wrap {
	margin-top: 4px;
	padding: 0;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e6ebf2;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	overflow: hidden;
}

.autonemo-tool-iframe-wrap[hidden] {
	display: none !important;
}

.autonemo-tool-iframe-wrap.is-open {
	animation: autonemoToolFadeIn 0.25s ease;
}

@keyframes autonemoToolFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.autonemo-tool-iframe-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	background: #f8fafc;
	border-bottom: 1px solid #e6ebf2;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b !important;
	-webkit-text-fill-color: #64748b !important;
}

.autonemo-tool-iframe-external {
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	color: var(--autonemo-red) !important;
	-webkit-text-fill-color: var(--autonemo-red) !important;
	text-decoration: none;
}

.autonemo-tool-iframe-external:hover {
	text-decoration: underline;
}

.autonemo-tool-iframe-frame {
	position: relative;
	width: 100%;
	height: clamp(420px, 72vh, 820px);
	background: #f1f5f9;
}

.autonemo-tool-iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

@media (max-width: 991px) {
	.autonemo-tools-grid,
	.autonemo-tools-detail-grid {
		grid-template-columns: 1fr;
	}

	.autonemo-tool-iframe-frame {
		height: clamp(380px, 68vh, 720px);
	}
}

@media (max-width: 575px) {
	body.autonemo-tools-page-active .page-content-wrapper {
		padding-top: 16px;
	}

	.autonemo-tools-hero,
	.autonemo-tools-detail-head,
	.autonemo-tool-card,
	.autonemo-tools-panel {
		padding-left: 16px;
		padding-right: 16px;
	}

	.autonemo-tools-detail-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.autonemo-tool-iframe-frame {
		height: min(72vh, 640px);
	}
}
