/*
 * Blanky Studio – News (patterns/studio-news.php)
 *
 * A dated list of posts with the Status format.
 *
 * @package blanky-studio
 * @since 2.5
 */

.studio-news {
	padding-block: var(--wp--preset--spacing--80);
	background-color: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
}

.studio-news .studio-news-inner {
	max-width: var(--studio-max-w-article);
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--40);
}

.studio-news .studio-news-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--foreground);
}

/* Date / label / title on one line from tablet up; stacked on phones. */
.studio-news .studio-news-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: baseline;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.studio-news .studio-news-date {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.125rem;
}

.studio-news .studio-news-cat {
	justify-self: start;
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
}

.studio-news .studio-news-cat a {
	display: inline-block;
	padding: 0.15em 0.8em;
	border: 1px solid var(--wp--preset--color--border);
	color: inherit;
	text-decoration: none;
}

.studio-news .studio-news-title.wp-block-post-title {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--wp--preset--font-family--noto-sans);
	font-size: 1rem;
	font-weight: 400;
	font-style: normal;
	line-height: 1.7;
}

.studio-news .studio-news-title a {
	color: inherit;
	text-decoration: none;
}

.studio-news .studio-news-title a:hover,
.studio-news .studio-news-title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

.studio-news p.studio-news-empty {
	padding-block: var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--noto-sans);
	color: var(--studio-meta-color);
}

@media (width >= 768px) {
	.studio-news .studio-news-inner {
		padding-inline: var(--wp--preset--spacing--60);
	}

	.studio-news .studio-news-row {
		grid-template-columns: 8rem 9rem minmax(0, 1fr);
		gap: var(--wp--preset--spacing--40);
	}

	.studio-news .studio-news-title.wp-block-post-title {
		grid-column: auto;
	}
}

/* style.css sets the Japanese font on every element under :lang(ja); keep the title link in the heading's face. */
.studio-news .studio-news-title a {
	font-family: inherit;
}
