/**
 * Arab SEO Tools ? calm professional theme styles
 */

.astt-container {
	width: min(100% - 2.5rem, var(--astt-max));
	margin-inline: auto;
}

.astt-container--narrow {
	width: min(100% - 2.5rem, 680px);
}

.astt-main {
	min-height: 58vh;
}

/* Header */
.astt-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--astt-surface) 94%, transparent);
	backdrop-filter: blur(10px);
	border-block-end: 1px solid var(--astt-border);
}

.astt-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	min-height: var(--astt-header-h);
}

.astt-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--astt-text);
	font-weight: 700;
	letter-spacing: -0.01em;
	min-width: 0;
}

.astt-brand__text {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
	line-height: 1.15;
}

.astt-brand__name {
	font-size: 1.02rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	color: var(--astt-text);
}

.astt-brand__tagline {
	font-size: 0.72rem;
	font-weight: 550;
	color: var(--astt-text-muted);
	letter-spacing: 0.01em;
}

.astt-brand__mark {
	color: var(--astt-primary);
	display: inline-flex;
	flex-shrink: 0;
}

/* Unified Lucide-style icon tiles */
.astt-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

.astt-icon-tile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: var(--astt-radius-sm);
	background: color-mix(in srgb, var(--astt-primary) 12%, transparent);
	color: var(--astt-primary);
}

.astt-icon-tile--xs {
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 5px;
}

.astt-icon-tile--sm {
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 5px;
}

.astt-icon-tile--tool {
	width: 2.5rem;
	height: 2.5rem;
}

.astt-icon-tile--lg {
	width: 3rem;
	height: 3rem;
	border-radius: var(--astt-radius);
}

.astt-icon-tile--brand {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 8px;
}

.astt-icon-tile--blue { background: rgba(53, 150, 210, 0.14); color: #2a7fb8; }
.astt-icon-tile--green { background: rgba(0, 168, 117, 0.14); color: #00a875; }
.astt-icon-tile--amber { background: rgba(224, 144, 0, 0.16); color: #c47d00; }
.astt-icon-tile--rose { background: rgba(229, 62, 62, 0.12); color: #e53e3e; }
.astt-icon-tile--violet { background: rgba(124, 92, 252, 0.14); color: #6b4ef0; }
.astt-icon-tile--teal { background: rgba(13, 148, 136, 0.14); color: #0d9488; }
.astt-icon-tile--orange { background: rgba(255, 152, 0, 0.16); color: #e67e00; }
.astt-icon-tile--indigo { background: rgba(79, 70, 229, 0.14); color: #4f46e5; }
.astt-icon-tile--cyan { background: rgba(6, 182, 212, 0.14); color: #0891b2; }
.astt-icon-tile--lime { background: rgba(132, 204, 22, 0.16); color: #65a30d; }

.astt-section__title .astt-icon,
.astt-section__title .astt-icon-tile {
	margin-inline-end: 0.45rem;
	vertical-align: -0.2em;
}

.astt-brand--footer .astt-brand__name {
	font-size: 1.05rem;
}

.astt-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.astt-nav__list a {
	text-decoration: none;
	color: var(--astt-text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
}

.astt-nav__list a:hover,
.astt-nav__list .current-menu-item > a {
	color: var(--astt-text);
}

.astt-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.astt-btn-icon {
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius-sm);
	background: var(--astt-surface);
	color: var(--astt-text-muted);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 0;
	position: relative;
}

.astt-btn-icon:hover {
	color: var(--astt-text);
	border-color: color-mix(in srgb, var(--astt-primary) 35%, var(--astt-border));
}

.astt-lang {
	display: inline-flex;
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius-sm);
	overflow: hidden;
}

.astt-lang__link {
	padding: 0.4rem 0.7rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--astt-text-muted);
	background: var(--astt-surface);
}

.astt-lang__link.is-active,
.astt-lang__link:hover {
	color: var(--astt-text);
	background: var(--astt-surface-2);
}

@media (max-width: 800px) {
	.astt-nav {
		position: fixed;
		inset-inline: 0;
		top: var(--astt-header-h);
		background: var(--astt-surface);
		border-block-end: 1px solid var(--astt-border);
		padding: 1rem 1.25rem;
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: 0.2s ease;
	}
	.astt-nav.is-open {
		transform: none;
		opacity: 1;
		pointer-events: auto;
	}
	.astt-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
	.astt-nav__list a {
		display: block;
		padding: 0.85rem 0;
		border-block-end: 1px solid var(--astt-border);
	}
}

/* Menu toggle ? icon only, same size as theme toggle */
.astt-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.astt-menu-toggle__label {
	display: none !important;
}

/* Buttons */
.astt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.2rem;
	border-radius: var(--astt-radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--astt-transition), border-color var(--astt-transition);
}

.astt-btn--primary {
	background: var(--astt-primary);
	color: #fff;
}

.astt-btn--primary:hover {
	background: var(--astt-primary-hover);
	color: #fff;
}

.astt-btn--ghost {
	background: transparent;
	border-color: var(--astt-border);
	color: var(--astt-text);
}

.astt-btn--ghost:hover {
	background: var(--astt-surface);
}

.astt-text-link {
	color: var(--astt-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
}

.astt-text-link:hover {
	text-decoration: underline;
}

/* Hero ? Kingdom style panel */
.astt-hero {
	padding-block: 1.75rem 0.5rem;
	background: var(--astt-bg);
}

.astt-hero__panel {
	text-align: center;
	padding: 2.6rem 1.35rem 2rem;
	background:
		radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--astt-primary) 10%, transparent), transparent 70%),
		linear-gradient(135deg, color-mix(in srgb, var(--astt-primary) 6%, var(--astt-surface)), color-mix(in srgb, var(--astt-primary) 3%, var(--astt-bg)));
	border: 1px solid var(--astt-border);
	border-radius: 24px;
}

.astt-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 1rem;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--astt-primary) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--astt-primary) 22%, transparent);
	color: var(--astt-primary);
	font-size: 0.78rem;
	font-weight: 700;
}

.astt-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 4.5vw, 2.55rem);
	line-height: 1.25;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--astt-text);
}

.astt-hero__accent {
	display: block;
	color: var(--astt-primary);
}

.astt-hero__subtitle {
	margin: 0 auto 1.35rem;
	font-size: 0.98rem;
	color: var(--astt-text-muted);
	max-width: 42ch;
}

.astt-hero__search {
	max-width: 560px;
	margin: 0 auto 1rem;
}

.astt-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	justify-content: center;
}

/* Search */
.astt-search {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 12px;
	padding: 0.35rem;
	box-shadow: var(--astt-shadow);
}

.astt-search__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding-inline-start: 0.65rem;
	color: var(--astt-text-muted);
	pointer-events: none;
}

.astt-search__input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	padding: 0.75rem 0.9rem;
	color: var(--astt-text);
	min-width: 0;
}

.astt-search__input--has-icon {
	padding-inline-start: 0.25rem;
}

.astt-search__submit {
	border: 0;
	border-radius: var(--astt-radius-sm);
	background: var(--astt-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	padding: 0 1.15rem;
	cursor: pointer;
}

.astt-search__submit:hover {
	background: var(--astt-primary-hover);
}

/* Sections */
.astt-section {
	padding-block: 3.25rem;
}

.astt-section + .astt-section {
	border-block-start: 1px solid var(--astt-border);
}

.astt-section__header {
	margin-bottom: 1.75rem;
}

.astt-section__header--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.astt-section__title {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.astt-section__desc {
	margin: 0;
	color: var(--astt-text-muted);
	font-size: 0.975rem;
	max-width: 46ch;
}

/* Categories ? responsive card grid */
.astt-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.astt-cat-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

.astt-cat-grid__item {
	margin: 0;
	min-width: 0;
}

.astt-cat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	height: 100%;
	padding: 1rem 1.05rem;
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius);
	background: var(--astt-surface);
	color: var(--astt-text);
	text-decoration: none;
	transition: border-color var(--astt-transition), background var(--astt-transition);
}

.astt-cat-card:hover {
	border-color: color-mix(in srgb, var(--astt-primary) 45%, var(--astt-border));
}

.astt-cat-card:hover .astt-icon-tile {
	background: color-mix(in srgb, var(--astt-primary) 18%, transparent);
}

.astt-cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
	width: 100%;
}

.astt-cat-card__name {
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--astt-text);
}

.astt-cat-card__desc {
	font-size: 0.8rem;
	line-height: 1.45;
	color: var(--astt-text-muted);
}

/* Tool cards ? interactive only */
.astt-tool-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.astt-tool-card {
	margin: 0;
	height: 100%;
}

@media (min-width: 768px) {
	.astt-tool-grid,
	.astt-tool-grid--featured,
	.astt-tool-grid--kot,
	.astt-tool-grid--inline {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.astt-tool-card__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.05rem;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color var(--astt-transition), transform var(--astt-transition), box-shadow var(--astt-transition);
	min-height: 84px;
	height: 100%;
}

.astt-tool-card__link:hover {
	border-color: color-mix(in srgb, var(--astt-primary) 45%, var(--astt-border));
	transform: translateY(-2px);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--astt-primary) 12%, transparent);
}

.astt-tool-card__link:hover .astt-icon-tile {
	background: color-mix(in srgb, var(--astt-primary) 18%, transparent);
}

.astt-tool-card__body {
	flex: 1;
	min-width: 0;
}

.astt-tool-card__title {
	margin: 0 0 0.2rem;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.35;
}

.astt-tool-card__desc {
	margin: 0;
	font-size: 0.75rem;
	color: var(--astt-text-muted);
	line-height: 1.4;
}

/* Why */
.astt-why-grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.astt-why-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.astt-why-item__title {
	margin: 0 0 0.4rem;
	font-size: 1.02rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.astt-why-item__desc {
	margin: 0;
	color: var(--astt-text-muted);
	font-size: 0.92rem;
}

.astt-block__title {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

/* FAQ */
.astt-faq__item {
	border-block-end: 1px solid var(--astt-border);
	padding-block: 0.85rem;
}

.astt-faq__item:first-child {
	border-block-start: 1px solid var(--astt-border);
}

.astt-faq__q {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.astt-faq__q::-webkit-details-marker {
	display: none;
}

.astt-faq__a {
	padding-top: 0.55rem;
	color: var(--astt-text-muted);
	font-size: 0.94rem;
}

.astt-faq__a p {
	margin: 0;
}

/* Footer */
.astt-footer {
	margin-top: 2rem;
	padding-block: 2.5rem 2rem;
	border-block-start: 1px solid var(--astt-border);
	background: var(--astt-surface);
}

.astt-footer__inner {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 720px) {
	.astt-footer__inner {
		grid-template-columns: 1.4fr 1fr 1fr;
		align-items: start;
	}
}

.astt-footer__tagline,
.astt-footer__meta {
	color: var(--astt-text-muted);
	font-size: 0.9rem;
}

.astt-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.astt-footer__menu a {
	text-decoration: none;
	color: var(--astt-text-muted);
	font-size: 0.9rem;
}

.astt-footer__menu a:hover {
	color: var(--astt-text);
}

/* Page / article */
.astt-article {
	padding-block: 0;
}

.astt-article__title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
	letter-spacing: -0.02em;
}

.astt-prose {
	color: var(--astt-text);
	line-height: 1.75;
}

.astt-prose p {
	margin-block: 0 1rem;
	color: var(--astt-text-muted);
}

/* Ads reserved space without CLS */
.astt-ad {
	min-height: 0;
}

.astt-back-top {
	position: fixed;
	inset-block-end: 1.25rem;
	inset-inline-end: 1.25rem;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--astt-border);
	background: var(--astt-surface);
	color: var(--astt-text);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 30;
}

.astt-back-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

/* ??? Page shells ??? */
.astt-page {
	padding-block: 2.25rem 3.5rem;
}

.astt-section--flush {
	padding-block: 1.75rem 0;
	border: 0;
}

.astt-section--flush + .astt-section--flush {
	margin-top: 2rem;
	padding-top: 2rem;
	border-block-start: 1px solid var(--astt-border);
}

/* Search dropdown */
.astt-search {
	position: relative;
}

.astt-search__results {
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 0.35rem);
	z-index: 30;
	margin: 0;
	padding: 0.4rem;
	list-style: none;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius);
	box-shadow: 0 8px 24px rgba(26, 31, 28, 0.08);
	max-height: 320px;
	overflow: auto;
}

.astt-search__results.is-loading::before {
	content: attr(data-loading-text);
	display: block;
	padding: 0.75rem;
	color: var(--astt-text-muted);
	font-size: 0.875rem;
}

.astt-search-result {
	display: block;
	padding: 0.7rem 0.85rem;
	border-radius: var(--astt-radius-sm);
	text-decoration: none;
	color: inherit;
}

.astt-search-result:hover {
	background: var(--astt-surface-2);
}

.astt-search-result__title {
	font-weight: 600;
	font-size: 0.9rem;
}

.astt-search-result__desc {
	margin-top: 0.15rem;
	font-size: 0.8rem;
	color: var(--astt-text-muted);
}

.astt-search-result__empty {
	margin: 0;
	padding: 0.75rem;
	color: var(--astt-text-muted);
	font-size: 0.875rem;
}

/* Archive / search headers */
.astt-archive-header,
.astt-search-header {
	margin-bottom: 2rem;
	max-width: 640px;
}

.astt-archive-header__title,
.astt-search-header__title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
	letter-spacing: -0.02em;
	font-weight: 700;
}

.astt-search-header__title span {
	color: var(--astt-primary);
}

.astt-archive-header__desc {
	color: var(--astt-text-muted);
	margin: 0 0 1rem;
}

/* Post list */
.astt-post-list {
	display: grid;
	gap: 0.75rem;
}

.astt-post-card {
	margin: 0;
	padding: 1.1rem 1.2rem;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius);
}

.astt-post-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 650;
}

.astt-post-card__title a {
	text-decoration: none;
	color: var(--astt-text);
}

.astt-post-card__title a:hover {
	color: var(--astt-primary);
}

.astt-post-card__excerpt {
	margin: 0 0 0.65rem;
	color: var(--astt-text-muted);
	font-size: 0.9rem;
}

.astt-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--astt-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
}

.astt-link:hover {
	text-decoration: underline;
}

.astt-empty {
	margin: 1rem 0;
	color: var(--astt-text-muted);
	font-size: 0.975rem;
}

/* Pagination */
.navigation.pagination {
	margin-top: 2rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.navigation.pagination a,
.navigation.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius-sm);
	background: var(--astt-surface);
	color: var(--astt-text-muted);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
}

.navigation.pagination a:hover,
.navigation.pagination .current {
	border-color: color-mix(in srgb, var(--astt-primary) 40%, var(--astt-border));
	color: var(--astt-text);
}

.navigation.pagination .current {
	background: var(--astt-surface-2);
	font-weight: 700;
}

/* Article extras */
.astt-article__meta {
	margin: 0 0 1.25rem;
	color: var(--astt-text-muted);
	font-size: 0.875rem;
}

.astt-article__thumb {
	margin-bottom: 1.25rem;
	border-radius: var(--astt-radius);
	overflow: hidden;
}

.astt-article__thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.astt-prose h2,
.astt-prose h3 {
	color: var(--astt-text);
	margin: 1.5rem 0 0.6rem;
	letter-spacing: -0.015em;
}

.astt-prose ul,
.astt-prose ol {
	color: var(--astt-text-muted);
	padding-inline-start: 1.25rem;
}

.astt-prose a {
	color: var(--astt-primary);
}

.astt-prose code {
	font-size: 0.9em;
	background: var(--astt-surface-2);
	padding: 0.1em 0.35em;
	border-radius: 4px;
}

/* 404 */
.astt-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52vh;
}

.astt-404__inner {
	max-width: 480px;
	width: 100%;
	text-align: start;
}

.astt-404__code {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--astt-primary);
}

.astt-404__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
	letter-spacing: -0.02em;
}

.astt-404__desc {
	margin: 0 0 1.25rem;
	color: var(--astt-text-muted);
}

.astt-404 .astt-search {
	margin-bottom: 1rem;
}

/* Theme toggle icons */
.astt-theme-toggle__sun,
.astt-theme-toggle__moon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.astt-theme-toggle__moon {
	display: none;
}

[data-theme="dark"] .astt-theme-toggle__sun {
	display: none;
}

[data-theme="dark"] .astt-theme-toggle__moon {
	display: inline-flex;
}

.astt-menu-toggle__open,
.astt-menu-toggle__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.astt-menu-toggle__close {
	display: none;
}

.astt-menu-toggle[aria-expanded="true"] .astt-menu-toggle__open {
	display: none;
}

.astt-menu-toggle[aria-expanded="true"] .astt-menu-toggle__close {
	display: inline-flex;
}

/* Sync plugin tokens with theme dark mode */
[data-theme="dark"] {
	--ast-bg: var(--astt-bg);
	--ast-surface: var(--astt-surface);
	--ast-text: var(--astt-text);
	--ast-muted: var(--astt-text-muted);
	--ast-border: var(--astt-border);
	--ast-primary: var(--astt-primary);
	--ast-primary-hover: var(--astt-primary-hover);
}

/* Plugin pages inside theme main */
.astt-main .ast-tool-page,
.astt-main .ast-archive-page {
	padding: 0;
	background: transparent;
	min-height: 0;
	font-family: inherit;
}

.astt-main .ast-container {
	width: min(100% - 2.5rem, var(--astt-max));
	max-width: var(--astt-max);
	margin-inline: auto;
}

.ast-tool-header__top {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.25rem;
}

.ast-tool-header__text {
	min-width: 0;
	flex: 1;
}

.ast-cat-chip .astt-icon {
	opacity: 0.9;
}

.ast-cat-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.75rem;
}

.ast-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--astt-border);
	border-radius: 999px;
	background: var(--astt-surface);
	color: var(--astt-text);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
}

.ast-cat-chip:hover,
.ast-cat-chip.is-active {
	border-color: color-mix(in srgb, var(--astt-primary) 40%, var(--astt-border));
	color: var(--astt-primary);
}

.ast-cat-chip__count {
	color: var(--astt-text-muted);
	font-size: 0.75rem;
}

html[dir="rtl"] .ast-tool-card__go {
	transform: scaleX(-1);
}

/* News */
.astt-article__eyebrow {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--astt-text-muted);
}

.astt-article__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.astt-article__eyebrow a:hover {
	color: var(--astt-primary);
}

.astt-news-grid {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 720px) {
	.astt-news-grid {
		grid-template-columns: 1.4fr 1fr;
		grid-template-rows: auto auto auto;
	}
	.astt-news-card--lead {
		grid-row: 1 / span 3;
	}
}

@media (min-width: 960px) {
	.astt-news-grid--archive {
		grid-template-columns: repeat(2, 1fr);
	}
	.astt-news-grid--archive .astt-news-card--lead {
		grid-row: auto;
	}
}

.astt-news-card {
	margin: 0;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: var(--astt-radius);
}

.astt-news-card__link {
	display: block;
	padding: 1.1rem 1.2rem;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: border-color var(--astt-transition);
}

.astt-news-card:hover {
	border-color: color-mix(in srgb, var(--astt-primary) 40%, var(--astt-border));
}

.astt-news-card__date {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--astt-text-muted);
	letter-spacing: 0.02em;
}

.astt-news-card__title {
	margin: 0 0 0.4rem;
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--astt-text);
}

.astt-news-card--lead .astt-news-card__title {
	font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.astt-news-card__excerpt {
	margin: 0;
	color: var(--astt-text-muted);
	font-size: 0.9rem;
	line-height: 1.55;
}


/* ===== Mega menu (Kingdom of Tools) ===== */
.astt-mega-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(15, 20, 25, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
}

.astt-mega-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}

.astt-mega {
	position: fixed;
	top: 0;
	inset-inline-end: 0;
	z-index: 95;
	width: min(100vw - 2rem, 360px);
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--astt-bg);
	border-inline-start: 1px solid var(--astt-border);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	transform: translateX(110%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .astt-mega {
	transform: translateX(-110%);
}

.astt-mega.is-open {
	transform: translateX(0);
}

html[dir="rtl"] .astt-mega.is-open {
	transform: translateX(0);
}

body.astt-mega-open {
	overflow: hidden;
}

.astt-mega__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.1rem 1.15rem;
	border-block-end: 1px solid var(--astt-border);
	background: var(--astt-surface);
	position: sticky;
	top: 0;
	z-index: 2;
}

.astt-mega__title {
	font-size: 1rem;
	font-weight: 750;
}

.astt-mega__close {
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--astt-border);
	border-radius: 8px;
	background: transparent;
	color: var(--astt-text-muted);
	cursor: pointer;
}

.astt-mega__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0.85rem 1rem;
	border-block-end: 1px solid var(--astt-border);
	background: var(--astt-surface);
}

.astt-mega__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--astt-border);
	border-radius: 999px;
	background: var(--astt-bg);
	color: var(--astt-text-muted);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.astt-mega__tab.is-active,
.astt-mega__tab:hover {
	border-color: var(--astt-primary);
	color: #fff;
	background: var(--astt-primary);
}

.astt-mega__tab-icon {
	display: inline-flex;
	opacity: 0.9;
}

.astt-mega__body {
	flex: 1;
	overflow: auto;
	padding-bottom: 1.5rem;
}

.astt-mega__panel {
	display: none;
}

.astt-mega__panel.is-active {
	display: block;
}

.astt-mega__section-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.75rem 1rem 0.35rem;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--astt-primary) 10%, transparent);
	color: var(--astt-primary);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 700;
}

.astt-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.astt-mega__item {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.7rem 1.15rem;
	color: var(--astt-text);
	text-decoration: none;
	border-inline-start: 3px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.astt-mega__item:hover {
	background: var(--astt-surface);
	border-inline-start-color: var(--astt-primary);
	color: var(--astt-primary);
}

.astt-mega__item-icon {
	display: inline-flex;
	margin-top: 0.1rem;
	color: var(--astt-primary);
}

.astt-mega__item-text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.astt-mega__item-name {
	font-size: 0.88rem;
	font-weight: 650;
	line-height: 1.35;
}

.astt-mega__item-desc {
	font-size: 0.72rem;
	color: var(--astt-text-muted);
	line-height: 1.4;
}

.astt-mega__empty {
	margin: 1rem;
	color: var(--astt-text-muted);
	font-size: 0.9rem;
}

.astt-block {
	margin-bottom: 2rem;
}

.astt-block__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.75rem;
	border-block-end: 1px solid var(--astt-border);
}

.astt-block__desc {
	margin: -0.35rem 0 0.9rem;
	color: var(--astt-text-muted);
	font-size: 0.88rem;
}

.ast-archive-header__top {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin-bottom: 0.85rem;
}

.ast-related-cats {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--astt-border);
}

.ast-related-cats__title {
	margin: 0 0 1rem;
	font-size: 1.15rem;
	font-weight: 750;
}

.astt-cat-grid--related {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
	.astt-cat-grid--related {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.ast-tools-grid--kot,
.astt-main .ast-tools-grid--kot {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

@media (min-width: 768px) {
	.ast-tools-grid--kot,
	.astt-main .ast-tools-grid--kot {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.astt-nav--desktop {
		display: none;
	}
}

/* Hide legacy category chip cloud if any old markup remains */
.ast-cat-chips { display: none !important; }

/* Explore / related (Kingdom of Tools) */
.ast-explore {
	margin-top: 2.5rem;
	padding-top: 0.5rem;
}

.ast-related {
	margin-bottom: 1.75rem;
}

.ast-related__title,
.ast-related > h2 {
	margin: 0 0 0.9rem;
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--astt-text);
}

.ast-related-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (min-width: 768px) {
	.ast-related-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ast-related-card {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.8rem 0.95rem;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--astt-text);
	min-width: 0;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ast-related-card:hover {
	border-color: var(--astt-primary);
	box-shadow: 0 4px 16px color-mix(in srgb, var(--astt-primary) 12%, transparent);
	transform: translateY(-2px);
}

.ast-related-card__name {
	font-size: 0.84rem;
	font-weight: 650;
	line-height: 1.35;
	min-width: 0;
}

.ast-explore-footer {
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 16px;
	padding: 1.35rem 1.25rem 1.2rem;
	box-shadow: var(--astt-shadow);
}

.ast-explore-footer__brand {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin-bottom: 1.1rem;
	text-align: start;
}

.ast-explore-footer__name {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.ast-explore-footer__desc {
	margin: 0 0 0.65rem;
	font-size: 0.84rem;
	line-height: 1.65;
	color: var(--astt-text-muted);
	max-width: 52ch;
}

.ast-explore-footer__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ast-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.7rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
}

.ast-badge--green { background: rgba(0, 168, 117, 0.12); color: #00a875; }
.ast-badge--blue { background: rgba(53, 150, 210, 0.12); color: #2a7fb8; }
.ast-badge--violet { background: rgba(124, 92, 252, 0.12); color: #6b4ef0; }

.ast-ft-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-start;
}

.ast-ft-cat {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.85rem;
	border: 1.5px solid var(--astt-border);
	border-radius: 12px;
	background: var(--astt-surface);
	color: var(--astt-text-muted);
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	transition: all 0.18s ease;
}

.ast-ft-cat:hover {
	border-color: var(--astt-primary);
	color: var(--astt-primary);
	background: color-mix(in srgb, var(--astt-primary) 7%, transparent);
	transform: translateY(-2px);
}

.ast-ft-cat.is-active {
	background: var(--astt-primary);
	border-color: var(--astt-primary);
	color: #fff;
}

.ast-ft-cat.is-active .astt-icon-tile {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.ast-related-cats { display: none !important; }

.astt-footer__panel {
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 16px;
	padding: 1.5rem 1.25rem 1.15rem;
	margin-block: 1.25rem 1.5rem;
	box-shadow: var(--astt-shadow);
}

.astt-footer__brand-block {
	text-align: center;
	margin-bottom: 1.15rem;
}

.astt-footer__brand-block .astt-brand {
	justify-content: center;
	margin-bottom: 0.55rem;
}

.astt-footer__brand-block .astt-footer__tagline {
	max-width: 48ch;
	margin: 0 auto 0.75rem;
}

.astt-footer__brand-block .ast-explore-footer__badges {
	justify-content: center;
}

.astt-footer__panel .ast-ft-cats {
	justify-content: center;
	margin-bottom: 1.15rem;
}

.astt-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--astt-border);
}

.astt-footer__copy {
	margin: 0;
	font-size: 0.78rem;
	color: var(--astt-text-muted);
}

.astt-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.astt-footer__links a {
	font-size: 0.78rem;
	color: var(--astt-text-muted);
	text-decoration: none;
}

.astt-footer__links a:hover {
	color: var(--astt-primary);
}

/* Explore hub ? KOT category tabs + tools panel */
.ast-explore-hub {
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 16px;
	padding: 1.35rem 1.25rem 1.25rem;
	box-shadow: var(--astt-shadow);
}

.ast-explore-hub__brand {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	margin-bottom: 1.1rem;
	text-align: start;
}

.ast-explore-hub__name {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	font-weight: 800;
}

.ast-explore-hub__desc {
	margin: 0 0 0.65rem;
	font-size: 0.84rem;
	line-height: 1.65;
	color: var(--astt-text-muted);
	max-width: 52ch;
}

.ast-explore-hub .ast-ft-cats {
	margin-bottom: 0.85rem;
}

.ast-explore-hub .ast-ft-cat {
	cursor: pointer;
	font: inherit;
}

.ast-explore-hub__panels {
	background: color-mix(in srgb, var(--astt-bg) 88%, var(--astt-primary) 4%);
	border: 1px solid var(--astt-border);
	border-radius: 14px;
	padding: 1rem;
}

.ast-explore-hub__panels[hidden] {
	display: none !important;
}

.ast-explore-hub__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	flex-wrap: wrap;
}

.ast-explore-hub__panel-title {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.95rem;
	font-weight: 800;
}

.ast-explore-hub__all {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--astt-primary);
	text-decoration: none;
}

.ast-explore-hub__all:hover {
	text-decoration: underline;
}

.ast-explore-hub__tools {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

@media (min-width: 768px) {
	.ast-explore-hub__tools {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ast-explore-hub__tool {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 0.75rem;
	background: var(--astt-surface);
	border: 1px solid var(--astt-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--astt-text);
	font-size: 0.8rem;
	font-weight: 650;
	min-width: 0;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.ast-explore-hub__tool span:last-child {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ast-explore-hub__tool:hover {
	border-color: var(--astt-primary);
	transform: translateY(-1px);
}

.ast-explore-hub__empty {
	margin: 0;
	color: var(--astt-text-muted);
	font-size: 0.88rem;
}

.astt-footer__bottom--solo {
	border-top: 0;
	padding-top: 0;
}

.astt-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.astt-footer__link-icon {
	display: inline-flex;
	color: var(--astt-primary);
}

.astt-footer__link-icon svg {
	width: 14px;
	height: 14px;
}
