/*
 * Fauri Job Responsive Stylesheet (Tablet & Mobile Breakpoints)
 */

@media (max-width: 1120px) {
	.fj-quick-cats-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.fj-featured-track {
		grid-auto-columns: calc(50% - 9px);
	}

	.fj-popular-cats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fj-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.fj-primary-nav,
	.fj-header-cta-btn {
		display: none;
	}

	.fj-mobile-menu-toggle {
		display: inline-flex;
	}

	body.fj-portal-theme:not(.home):not(.page-template-homepage) #content.site-content,
	body.fj-portal-theme.left-sidebar:not(.home) #content.site-content {
		flex-direction: column;
		padding-block: 20px 32px;
	}

	body.fj-portal-theme:not(.home):not(.page-template-homepage) #primary.content-area,
	body.fj-portal-theme:not(.home):not(.page-template-homepage) #right-sidebar,
	body.fj-portal-theme:not(.home):not(.page-template-homepage) #left-sidebar {
		width: 100%;
		flex: none;
	}

	body.fj-has-sticky-sidebar .fj-sidebar-inner {
		position: static;
	}

	/* Keep mobile sidebar crisp and prevent overly long scroll */
	body.fj-mobile-compact-sidebar .fj-sidebar-inner .fj-sb-post-item:nth-child(n+4),
	body.fj-mobile-compact-sidebar .fj-sidebar-inner .fj-sb-ranked-list li:nth-child(n+4),
	body.fj-mobile-compact-sidebar .fj-sidebar-inner .fj-sb-cat-list li:nth-child(n+7) {
		display: none;
	}

	.fj-cards-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fj-newsletter-card {
		grid-template-columns: 1fr;
		padding: 24px;
	}
}

@media (max-width: 768px) {
	:root {
		--fj-gutter: 15px;
	}

	.fj-ad-device--desktop,
	.fj-ad-only-desktop {
		display: none !important;
	}

	.fj-ad-only-mobile {
		display: block;
	}

	.fj-announcement-inner {
		justify-content: center;
		text-align: center;
	}

	.fj-hero {
		padding-block: 34px 38px;
	}

	.fj-hero-search-form {
		flex-direction: column;
		padding: 10px;
	}

	.fj-hero-select-wrap {
		flex: none;
		border-left: none;
		border-top: 1px solid var(--fj-border);
		padding-left: 0;
		padding-top: 6px;
	}

	.fj-hero-submit {
		width: 100%;
		justify-content: center;
	}

	.fj-quick-cats-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.fj-cards-grid--2,
	.fj-cards-grid--3,
	.fj-popular-cats-grid,
	.fj-post-nav,
	.fj-footer-grid {
		grid-template-columns: 1fr;
	}

	.fj-featured-track {
		grid-auto-columns: 86%;
	}

	.fj-single-article {
		padding: 20px 16px;
	}

	.fj-overview-table th,
	.fj-overview-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.fj-overview-table th {
		border-bottom: none;
		padding-bottom: 4px;
	}

	.fj-compact-row,
	.fj-official-link-row,
	.fj-inline-search-form,
	.fj-newsletter-form {
		flex-direction: column;
		align-items: stretch;
	}

	.fj-inline-search-form .fj-select {
		max-width: none;
	}

	.fj-author-card {
		flex-direction: column;
		text-align: center;
	}

	.fj-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.fj-footer-legal-list {
		justify-content: center;
	}
}

@media (min-width: 769px) {
	.fj-ad-device--mobile {
		display: none !important;
	}
}

@media (max-width: 480px) {
	.fj-quick-cats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fj-brand-tagline {
		display: none;
	}
}
