/* A tutorial's older versions: a quiet disclosure in the metadata strip. */
.pst-tutorial-versions > summary {
	display: list-item;
	min-height: 44px;
	line-height: 44px;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}

.pst-tutorial-versions .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Phone menu sections: a large disclosure row per section. */
.pst-tutorial-resources > summary {
	display: list-item;
	min-height: 44px;
	padding-block: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--action);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	cursor: pointer;
}

.pst-menu-section {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding-bottom: var(--wp--preset--spacing--30);
}

.pst-menu-section > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.pst-menu-section > summary::-webkit-details-marker {
	display: none;
}

/* The shared Popular query uses core Details on phones. */
.pst-tutorial-popular {
	border-block: 1px solid var(--wp--preset--color--line);
}

.pst-tutorial-popular > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	gap: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.pst-tutorial-popular > summary::-webkit-details-marker {
	display: none;
}

.pst-menu-section > summary::after,
.pst-tutorial-popular > summary::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-right: 2px solid var(--wp--preset--color--muted);
	border-bottom: 2px solid var(--wp--preset--color--muted);
	transform: rotate(45deg);
	transition: transform var(--wp--custom--motion--fast, 150ms) ease;
}

.pst-menu-section[open] > summary::after,
.pst-tutorial-popular[open] > summary::after {
	transform: rotate(-135deg);
}

.pst-menu-section > summary:focus-visible,
.pst-tutorial-popular > summary:focus-visible {
	outline: 2px solid var(--wp--preset--color--action);
	outline-offset: 2px;
	border-radius: var(--wp--preset--border-radius--xs);
}

@media (min-width: 783px) {

	.pst-tutorial-extras--enhanced .pst-tutorial-popular {
		border: 0;
		padding: var(--wp--preset--spacing--50);
	}

	.pst-tutorial-extras--enhanced .pst-tutorial-popular > summary {
		display: none;
	}

	.pst-tutorial-popular > .pst-popular-heading {
		margin-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.pst-menu-section > summary::after,
	.pst-tutorial-popular > summary::after {
		transition: none;
	}
}

.pst-mobile-menu__links .wp-block-navigation-item__content {
	min-height: 48px;
	display: flex;
	align-items: center;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
}
