@media (max-width: 1279px) {
	:root {
		--gap: 24px;
	}
	
	.popular-tools__slider .slick-list {
		padding-top: 60px;
	}

	.head .layout {
		gap: 20px;
	}

	.menu nav > ul {
		gap: 24px;
	}

	.head-search {
		flex-basis: 220px;
	}

	.hero-intro {
		padding-top: 64px;
		padding-bottom: 34px;
	}

	.hero-intro__title {
		font-size: 32px;
	}

	.hero-intro__subtitle {
		font-size: 24px;
	}

	.hero-card {
		flex: 1 1 calc(33.333% - 12px);
		min-width: 220px;
	}

	.hero-chip {
		flex: 1 1 calc(33.333% - 12px);
	}

	/*
	.guide-card {
		flex: 1 1 calc(33.333% - 12px);
		min-width: 0;
	}
	*/

	/*
	.prompt-pack-card {
		flex: 1 1 calc(50% - 9px);
		min-width: 0;
	}
	*/

	.demo-card {
		min-width: 0;
	}

	.guide-archive .guide-card {
		flex: 0 0 calc(33.333% - 12px);
		max-width: calc(33.333% - 12px);
	}

	.topic-hub-card {
		flex: 1 1 calc(33.333% - 12px);
		min-width: 0;
	}

	.topic-feed-card {
		flex: 0 0 calc(50% - 9px);
		max-width: calc(50% - 9px);
	}

	.vibe-archive .vibe-project-card,
	.prompt-archive .prompt-pack-card {
		flex: 0 0 calc(50% - 11px);
		max-width: calc(50% - 11px);
	}

	.page-single__hero-grid--has-cover {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.tool-single__layout {
		grid-template-columns: minmax(0, 1fr) 300px;
	}

	.popular-tools__slider .slick-prev {
        left: 9px;
        top: 10px;
	}

	.popular-tools__slider .slick-next {
        top: 10px;
        left: 65px;
	}
}

@media (max-width: 1100px) {
	:root {
		--gap: 20px;
		--gutter: 20px;
	}

	.site-header {
		z-index: 70;
	}

	.head .layout {
		gap: 16px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.logo {
		position: relative;
		z-index: 72;
	}

	.logo img {
		height: 36px;
	}

	.header-burger {
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		flex: 0 0 auto;
		width: 46px;
		height: 46px;
		margin-left: auto;
		padding: 0;
		border: 0;
		border-radius: 14px;
		background: rgb(232 231 243);
		box-shadow: 0 10px 24px rgba(96, 120, 167, 0.10);
		cursor: pointer;
		position: relative;
		z-index: 72;
	}

	.header-burger span {
		display: block;
		width: 18px;
		height: 2px;
		border-radius: 999px;
		background: #22304d;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}

	body.menu-open .header-burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	body.menu-open .header-burger span:nth-child(2) {
		opacity: 0;
	}

	body.menu-open .header-burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.header-mobile-panel {
		position: fixed;
		top: calc(var(--wp-admin-offset, 0px) + var(--site-header-height, 64px) + 8px);
		right: 16px;
		width: min(420px, calc(100vw - 32px));
		height: calc(100dvh - var(--wp-admin-offset, 0px) - var(--site-header-height, 64px) - 16px);
		padding: 20px;
		border-radius: 24px;
		background: rgba(255, 255, 255, 1.0);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		box-shadow: 0 24px 60px rgba(67, 88, 132, 0.24);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translateX(20px);
		transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
		z-index: 71;
	}

	.header-mobile-panel.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(0);
	}

	.header-mobile-panel__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		padding-bottom: 6px;
		border-bottom: 1px solid rgba(176, 191, 223, 0.34);
	}

	.header-mobile-panel__title {
		font-size: 18px;
		line-height: 1.2;
		font-weight: 800;
		color: #1f2940;
	}

	.header-mobile-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 12px;
		background: #f1f4fb;
		cursor: pointer;
		position: relative;
	}

	.header-mobile-close::before,
	.header-mobile-close::after {
		content: "";
		position: absolute;
		width: 16px;
		height: 2px;
		border-radius: 999px;
		background: #22304d;
	}

	.header-mobile-close::before {
		transform: rotate(45deg);
	}

	.header-mobile-close::after {
		transform: rotate(-45deg);
	}

	.header-mobile-overlay {
		display: block;
		position: fixed;
		inset: 0;
		padding: 0;
		border: 0;
		background: rgba(20, 31, 54, 0.42);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.24s ease, visibility 0.24s ease;
		z-index: 60;
	}

	.header-mobile-overlay.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header-mobile-panel .menu,
	.header-mobile-panel .head-search {
		width: 100%;
		flex: 0 0 auto;
	}

	.header-mobile-panel .menu {
		justify-content: flex-start;
	}

	.header-mobile-panel .head-search {
		margin-top: auto;
	}

	.header_nav,
	.header_nav > ul {
		width: 100%;
	}

	.menu nav > ul {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.menu nav > ul > li > a {
		justify-content: space-between;
		padding: 14px 18px;
		border-radius: 16px;
		background: #f3f6fc;
	}

	.menu nav > ul > li.has > a::after {
		transform: rotate(45deg);
	}

	.menu nav > ul > li.is-open > a::after {
		transform: rotate(225deg);
	}

	.menu nav > ul > li > ul {
		position: static;
		left: auto;
		top: auto;
		transform: none;
		min-width: 0;
		margin-top: 8px;
		padding: 10px;
		border-radius: 16px;
		background: #f6f8fd;
		box-shadow: none;
		display: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.menu nav > ul > li.is-open > ul {
		display: block;
	}

	.search-form input {
		height: 44px;
		border-radius: 12px;
	}

	.hero-intro {
		padding-top: 56px;
		padding-bottom: 28px;
	}

	.hero-intro__title {
		font-size: 30px;
	}

	.hero-intro__subtitle {
		font-size: 22px;
	}

	.hero-card {
		flex: 1 1 calc(50% - 9px);
	}

	.hero-chip {
		flex: 1 1 calc(50% - 9px);
	}

	.latest-news__head,
	.popular-tools__head,
	.vibe-projects__head,
	.demo-showcase__head,
	.prompt-packs__head,
	.guides-playbooks__head,
	.topic-related__head,
	.footer-compact__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.news-card,
	.vibe-project-card,
	.prompt-pack-card,
	.guide-card,
	.topic-hub-card,
	.topic-feed-card,
	.topic-hub-archive__tools-grid > .tool-card,
	.guide-single__related .prompt-packs__grid > .prompt-pack-card,
	.guide-single__related .vibe-projects__grid > .vibe-project-card,
	.vibe-archive .vibe-project-card,
	.prompt-archive .prompt-pack-card,
	.guide-archive .guide-card {
		flex: 1 1 calc(50% - 9px);
		max-width: calc(50% - 9px);
		min-width: 0;
	}

	.tool-archive-card {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.tools-archive__controls,
	.news-hub__controls,
	.topic-hub-page__controls {
		flex-direction: column;
		align-items: stretch;
	}

	.tools-archive__controls-right,
	.news-hub__controls-right,
	.topic-hub-page__filters,
	.topic-hub-page__search-form {
		width: 100%;
	}

	.tools-archive__controls-right form,
	.news-hub__controls-right form {
		width: 100%;
	}

	.tools-archive__controls-right select,
	.news-hub__controls-right select,
	.topic-hub-page__filters select,
	.topic-hub-page__search-form input,
	.topic-hub-page__search-form button {
		width: 100%;
	}

	.tools-archive__filter-group {
		flex-direction: column;
		gap: 12px;
	}

	.tools-archive__filter-label {
		flex: 0 0 auto;
		padding-top: 0;
	}

	.news-hub__search,
	.tools-archive__search,
	.page-not-found__search {
		border-radius: 24px;
		padding: 14px;
	}

	.page-single__hero-grid--has-cover,
	.page-single__hero-grid--no-cover,
	.tool-single__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.page-single__layout {
		flex-direction: column;
	}

	.page-single__cover {
		max-width: 520px;
		height: 280px;
	}

	.tool-single__side {
		grid-column: auto;
	}

	.topic-hub-page__hero-inner {
		flex-direction: column;
	}

	.topic-hub-page__controls {
		align-items: stretch;
	}

	.page-not-found__card {
		padding: 34px 28px;
	}
	
    .popular-tools__slider .slick-list {
        padding-top: 15px;
    }
	
    .popular-tools__slider .slick-prev {
        left: initial;
        top: -38px;
        right: 65px;
    }	
	
    .popular-tools__slider .slick-next {
        top: -38px;
        left: initial;
        right: 10px;
    }	
}

@media (max-width: 860px) {
	:root {
		--gutter: 18px;
	}

	.hero-card--vibe {
		flex-basis: 100%;
	}

	.hero-card--vibe .hero-card__title {
		max-width: none;
	}

	.tools-archive__search,
	.news-hub__search,
	.page-not-found__search {
		flex-direction: column;
		align-items: stretch;
	}

	.tools-archive__search input[type="search"],
	.tools-archive__search button,
	.news-hub__search input[type="search"],
	.news-hub__search button,
	.page-not-found__search input[type="search"],
	.page-not-found__search button {
		width: 100%;
	}

	.tools-archive__search button,
	.news-hub__search button,
	.page-not-found__search button {
		min-width: 0;
	}

	.tool-single__hero-head {
		flex-direction: column;
		margin-bottom: 22px;
	}

	.tool-single__icon {
		width: 84px;
		height: 84px;
		flex-basis: 84px;
		font-size: 36px;
	}

	.prompt-single__prompt-head {
		flex-direction: column;
		align-items: stretch;
	}

	.prompt-single__actions {
		justify-content: flex-start;
	}

	.topic-hub-page__stream-title,
	.topic-related__title {
		font-size: 28px;
	}

	.page-not-found__links {
		grid-template-columns: 1fr;
	}

	.site-footer {
		padding-top: 72px;
	}

	.footer-compact__nav {
		gap: 14px 22px;
	}

	.footer-compact__socials a {
		width: 30px;
		height: 30px;
		font-size: 22px;
	}

	.demo-card__body {
		flex-direction: column;
		align-items: flex-start;
	}

	.demo-card__action,
	.demo-card__launch {
		width: 100%;
	}
}

@media (max-width: 782px) {
	body.admin-bar {
		--wp-admin-offset: 46px;
	}

	.site-header {
		top: 0;
	}
	
	html #wpadminbar {
		display:none;
	}
}

@media (max-width: 767px) {
	:root {
		--gap: 16px;
		--gutter: 16px;
	}

	.logo img {
		height: 32px;
	}

	.header-mobile-panel {
		top: calc(var(--wp-admin-offset, 0px) + var(--site-header-height, 60px) + 6px);
		right: 12px;
		width: calc(100vw - 24px);
		height: calc(100dvh - var(--wp-admin-offset, 0px) - var(--site-header-height, 60px) - 12px);
		padding: 18px 16px 16px;
	}

	.hero-intro {
		padding-top: 44px;
		padding-bottom: 24px;
	}

	.hero-intro__title {
		font-size: 28px;
	}

	.hero-intro__subtitle {
		font-size: 20px;
		line-height: 1.35;
	}

	.hero-card,
	.hero-chip,
	.news-card,
	.vibe-project-card,
	.prompt-pack-card,
	.guide-card,
	.topic-hub-card,
	.topic-feed-card,
	.topic-hub-archive__tools-grid > .tool-card,
	.guide-single__related .prompt-packs__grid > .prompt-pack-card,
	.guide-single__related .vibe-projects__grid > .vibe-project-card,
	.vibe-archive .vibe-project-card,
	.prompt-archive .prompt-pack-card,
	.guide-archive .guide-card {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.hero-card__link {
		min-height: 164px;
	}

	.hero-card__icon,
	.hero-card__icon img {
		width: 64px;
		height: 60px;
	}

	.hero-card__title,
	.topic-hub-card__title {
		font-size: 17px;
	}

	.latest-news__all,
	.popular-tools__all,
	.vibe-projects__all,
	.demo-showcase__all,
	.prompt-packs__all,
	.guides-playbooks__all {
		width: 100%;
		max-width: 280px;
	}

	.latest-news__grid,
	.vibe-projects__grid,
	.prompt-packs__grid,
	.guides-playbooks__grid,
	.demo-showcase__grid,
	.topic-hub-archive__feed,
	.topic-hub-archive__tools-grid {
		gap: 22px;
	}

	.demo-card__image {
		aspect-ratio: 1.9 / 1;
	}

	/*
	.tools-archive,
	.news-hub,
	.page-single,
	.page-not-found,
	.tool-single,
	.news-single {
		padding-top: 34px;
	}
	*/
	
	body main {
		padding-top:100px !important;	
	}

	.tools-archive__title,
	.news-hub__title,
	.news-single__title,
	.tool-single__title,
	.page-not-found__title {
		font-size: 34px;
	}

	.tools-archive__text,
	.news-hub__text,
	.news-single__lead,
	.tool-single__subtitle,
	.page-not-found__text,
	.tool-single__intro,
	.tool-single__content,
	.tool-single__section-text,
	.news-single__content,
	.page-single__content {
		font-size: 17px;
	}

	.news-hub__tabs,
	.tools-archive__tabs,
	.topic-hub-page__tabs {
		/*
		flex-wrap: nowrap;
		*/
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
		
		padding-top: 15px;
	}

	.news-hub__tabs a,
	.tools-archive__tabs a,
	.topic-hub-page__tabs a {
		flex: 0 0 auto;
		white-space: nowrap;
	}

	.tools-archive__filters-panel {
		padding: 18px;
	}

	.tool-archive-card__link {
		padding: 20px 18px;
	}

	.tool-archive-card__top {
		flex-direction: column;
	}

	.tool-archive-card__title {
		font-size: 22px;
	}

	.tool-single__section h2,
	.news-single__content h2,
	.page-single__box h2,
	.page-not-found__box h2,
	.prompt-single__section h2,
	.guide-single__section h2,
	.guide-single__related h2,
	.topic-hub-page__stream-title {
		font-size: 28px;
	}

	.news-single__content h3,
	.page-single__content blockquote,
	.prompt-single__prompt-title {
		font-size: 22px;
	}

	.news-single__cover,
	.page-single__cover {
		height: 220px;
	}

	.news-single__meta {
		gap: 10px;
	}

	.prompt-single__prompt-text,
	.prompt-single__section,
	.guide-single__section,
	.tool-single__box,
	.page-not-found__box {
		padding: 22px 18px;
	}

	.prompt-single__action {
		width: 100%;
	}

	.page-single__content blockquote {
		padding: 20px;
	}

	.page-single__content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.page-not-found__card {
		padding: 28px 20px;
		border-radius: 24px;
	}

	.footer-compact__nav {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.site-footer {
		padding-top: 64px;
	}

	.site-preloader__inner {
		width: calc(100vw - 32px);
		padding: 28px 22px;
	}
	
	.topic-hubs .topic-hub-card {
		flex: 0 0 calc(50% - 12px);
		max-width: calc(50% - 12px);		
	}
	
	
}


@media (max-width: 700px) {	
	.news-archive-card {
		flex: 0 0 100%;
		max-width: 100%;
		min-width: 100%;		
	}
}


@media (max-width: 600px) {	
	html #wpadminbar {
        top: -46px;
    }	
	
	.demo-card {
		flex: 1 1 100%;
        margin-bottom: 40px;
	}
}

@media (max-width: 520px) {
	.hero-chip {
		flex-basis: 100%;
	}

	.hero-card__link,
	.topic-hub-card__link {
		padding: 18px 14px 16px;
	}

	.news-card__title,
	.vibe-project-card__title,
	.prompt-pack-card__title,
	.guide-card__title {
		font-size: 15px;
	}

	.news-card__meta,
	.vibe-project-card__text,
	.prompt-pack-card__text,
	.guide-card__text,
	.guide-card__result,
	.topic-feed-card__excerpt {
		font-size: 14px;
	}

	.tools-archive__context-label,
	.tools-archive__count-pill,
	.news-hub__context-label {
		width: 100%;
		justify-content: flex-start;
	}

	.news-single__meta-item {
		width: 100%;
		justify-content: flex-start;
	}

	.tool-single__pills,
	.tool-single__inline-pills,
	.prompt-single__actions,
	.page-not-found__actions {
		gap: 8px;
	}

	.tool-single__pill,
	.tool-archive-card__badge,
	.tool-archive-card__task,
	.prompt-pack-card__tag,
	.vibe-project-card__stack,
	.news-card__tag,
	.news-single__chip,
	.topic-feed-card__type,
	.topic-feed-card__meta-pill,
	.topic-links__item {
		font-size: 12px;
	}

	.news-hub__title,
	.tools-archive__title,
	.news-single__title,
	.tool-single__title,
	.page-not-found__title {
		font-size: 30px;
	}

	.page-not-found__code {
		min-height: 50px;
		font-size: 24px;
	}

	.site-preloader__scene {
		transform: scale(0.9);
	}
	
    .topic-hubs .topic-hub-card {
        flex: 0 0 100%;
        max-width: 100%;
    }	
}


@media (max-width: 480px) {
    .popular-tools__slider .slick-prev {
        top: -42px; 
	}
    .popular-tools__slider .slick-next {
        top: -42px;
    }	
}