@media (max-width: 1120px) {
	:root {
		--pw-header-height: 55px;
	}

	.pw-menu-toggle {
		display: inline-grid;
		width: 42px;
		height: 42px;
		place-items: center;
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--pw-purple);
		cursor: pointer;
	}

	.pw-menu-toggle__lines {
		display: grid;
		width: 24px;
		gap: 5px;
	}

	.pw-menu-toggle__lines span {
		display: block;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
	}

	.pw-topbar__inner {
		min-height: 62px;
	}

	.pw-topbar__inner .pw-brand {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}

	.pw-navigation-row {
		height: 0;
	}

	.pw-primary-navigation {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1000;
		display: block;
		width: min(88vw, 390px);
		height: 100dvh;
		overflow-y: auto;
		padding: 0 1rem 1.5rem;
		background: #fff;
		box-shadow: var(--pw-shadow-lg);
		transform: translateX(-105%);
		transition: transform 260ms ease;
	}

	.pw-primary-navigation.is-open {
		transform: translateX(0);
	}

	.pw-navigation__mobile-head {
		position: sticky;
		top: 0;
		z-index: 3;
		display: flex;
		min-height: 72px;
		align-items: center;
		justify-content: space-between;
		margin: 0 -1rem 0.75rem;
		padding: 0 1rem;
		border-bottom: 1px solid var(--pw-line);
		background: #fff;
	}

	.pw-brand--drawer {
		font-size: 1rem;
	}

	.pw-brand--drawer .pw-brand__mark {
		width: 30px;
		height: 30px;
	}

	.pw-navigation__close {
		width: 42px;
		height: 42px;
		border: 0;
		background: transparent;
		color: var(--pw-purple);
		font-size: 2rem;
		line-height: 1;
		cursor: pointer;
	}

	.pw-menu {
		display: block;
	}

	.pw-menu > .menu-item {
		border-bottom: 1px solid var(--pw-line);
	}

	.pw-menu > .menu-item > a {
		min-height: 52px;
		padding: 0.75rem 2.8rem 0.75rem 0.35rem;
		color: var(--pw-ink);
		font-size: 0.95rem;
	}

	.pw-menu > .menu-item > a::after,
	.pw-menu .menu-item-has-children > a::before {
		display: none;
	}

	.pw-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0.6rem 0.75rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	.pw-menu .menu-item.is-submenu-open > .sub-menu {
		display: block;
	}

	.pw-menu .sub-menu a {
		padding: 0.58rem 0.65rem;
	}

	.pw-menu__item--wide > .pw-mega-menu,
	.pw-menu__item--align-right > .pw-mega-menu,
	.pw-mega-menu {
		right: auto;
		left: auto;
		width: 100%;
		max-width: none;
		grid-template-columns: 1fr;
	}

	.pw-mega-menu__link {
		min-height: 0;
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 0.7rem;
		padding: 0.7rem 0.65rem;
	}

	.pw-mega-menu__icon {
		width: 36px;
		height: 36px;
	}

	.pw-mega-menu__icon svg {
		width: 19px;
		height: 19px;
	}

	.pw-mega-menu__copy strong {
		font-size: 0.84rem;
	}

	.pw-mega-menu__copy small {
		font-size: 0.72rem;
	}

	.pw-submenu-toggle {
		position: absolute;
		top: 5px;
		right: 0;
		display: grid;
		width: 42px;
		height: 42px;
		place-items: center;
		border: 0;
		border-radius: var(--pw-radius-sm);
		background: transparent;
		color: var(--pw-purple);
		cursor: pointer;
	}

	.pw-submenu-toggle::after {
		width: 8px;
		height: 8px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		content: "";
		transform: translateY(-2px) rotate(45deg);
		transition: transform var(--pw-transition);
	}

	.menu-item.is-submenu-open > .pw-submenu-toggle::after {
		transform: translateY(2px) rotate(225deg);
	}

	.pw-navigation__mobile-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
		margin-top: 1.25rem;
	}

	.pw-blog-hero::before {
		display: none;
	}

	.pw-featured-post {
		grid-template-columns: 1fr;
	}

	.pw-featured-post__media {
		min-height: 0;
		aspect-ratio: 16 / 8;
	}

	.pw-content-layout,
	.pw-content-layout--article {
		grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
		gap: 2rem;
	}

	.pw-post-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.pw-blog-hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.pw-blog-hero__search {
		max-width: 600px;
	}

	.pw-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}

	.pw-category-chips {
		justify-content: flex-start;
	}

	.pw-content-layout,
	.pw-content-layout--article {
		grid-template-columns: 1fr;
	}

	.pw-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
		margin-top: 1rem;
	}

	.pw-widget + .pw-widget,
	.pw-widget + .pw-sidebar-cta,
	.pw-sidebar-cta + .pw-widget {
		margin-top: 0;
	}

	.pw-sidebar-cta {
		grid-column: 1 / -1;
	}

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

@media (max-width: 680px) {
	.pw-container {
		width: min(calc(100% - 28px), var(--pw-container));
	}

	.pw-header-actions__login,
	.pw-header-actions__divider {
		display: none;
	}

	.pw-header-actions .pw-button {
		min-height: 36px;
		padding: 0.48rem 0.7rem;
		font-size: 0.68rem;
	}

	.pw-topbar__inner .pw-brand__name {
		display: none;
	}

	.pw-topbar__inner .pw-brand__custom-logo .custom-logo {
		max-width: 130px;
		height: 30px;
	}

	.pw-blog-hero,
	.pw-page-hero,
	.pw-article-hero {
		padding-top: 3.25rem;
		padding-bottom: 3.25rem;
	}

	.pw-blog-hero h1,
	.pw-page-hero h1,
	.pw-article-hero h1 {
		font-size: clamp(2.35rem, 12vw, 3.65rem);
	}

	.pw-featured-post__content {
		padding: 1.5rem;
	}

	.pw-featured-post__content h2 {
		font-size: clamp(1.75rem, 8vw, 2.45rem);
	}

	.pw-post-grid,
	.pw-post-grid--related {
		grid-template-columns: 1fr;
	}

	.pw-sidebar {
		grid-template-columns: 1fr;
	}

	.pw-sidebar-cta {
		grid-column: auto;
	}

	.pw-post-navigation {
		grid-template-columns: 1fr;
	}

	.pw-post-navigation > div:last-child {
		text-align: left;
	}

	.pw-footer-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.pw-footer-column h2 {
		margin-bottom: 1rem;
	}

	.pw-footer-social {
		justify-content: center;
	}

	.pw-footer-bottom,
	.pw-footer-legal {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}

	.pw-footer-legal {
		justify-content: center;
	}

	.pw-footer-legal nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.pw-article-meta__separator {
		display: none;
	}

	.pw-article-meta {
		gap: 0.45rem 0.85rem;
	}

	.pw-article-content table {
		display: block;
		overflow-x: auto;
	}
}

@media (max-width: 430px) {
	.pw-header-actions .pw-button {
		display: none;
	}

	.pw-topbar__inner {
		justify-content: flex-start;
	}

	.pw-topbar__inner .pw-brand {
		left: auto;
		right: 0;
		transform: none;
	}

	.pw-navigation__mobile-actions {
		grid-template-columns: 1fr;
	}

	.pw-post-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.pw-footer-legal nav {
		flex-direction: column;
		gap: 0.35rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
