/* WCA Workshop: reading rhythm and the homepage grid, on top of the WCA 2026 styles. */

/* Titles get room before the content. */
.wp-block-post-title,
.wp-block-query-title {
	line-height: 1.1;
	margin-block-end: var(--wp--preset--spacing--30);
}

/* Article body. */
.wp-block-post-content {
	line-height: 1.7;
}
.wp-block-post-content > * {
	margin-block: 0;
}
.wp-block-post-content > * + * {
	margin-block-start: 1.15em;
}
.wp-block-post-content > :where(h2, h3, h4, h5, h6) {
	line-height: 1.2;
	margin-block-start: 1.9em;
}
.wp-block-post-content > :where(h2, h3, h4, h5, h6) + * {
	margin-block-start: 0.6em;
}
.wp-block-post-content :where(ul, ol) {
	padding-inline-start: 1.4em;
}
.wp-block-post-content li + li {
	margin-block-start: 0.4em;
}
.wp-block-post-content :where(code, pre) {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.88em;
}
.wp-block-post-content :not(pre) > code {
	background: #eef2fb;
	border-radius: 4px;
	padding: 0.1em 0.35em;
}
.wp-block-post-content pre {
	background: #0d266b;
	border-radius: 12px;
	color: #ffffff;
	overflow-x: auto;
	padding: 1.1em 1.3em;
}
.wp-block-post-content details {
	border-block-end: 1px solid #dfe5f2;
	padding-block: 0.8em;
}
.wp-block-post-content details + details {
	margin-block-start: 0;
}
.wp-block-post-content summary {
	color: #0d266b;
	cursor: pointer;
	font-weight: 700;
}
.wp-block-post-content details > :not(summary) {
	margin-block-start: 0.6em;
}

/* Archive lists. */
.wp-block-post-template > li + li {
	border-block-start: 1px solid #dfe5f2;
	margin-block-start: var(--wp--preset--spacing--30);
	padding-block-start: var(--wp--preset--spacing--30);
}
.wp-block-post-template .wp-block-post-title {
	margin-block-end: 0.4em;
}
.wp-block-post-template .wp-block-post-title a {
	text-decoration: none;
}

/* Homepage: one card per public custom post type. */
.wca-pt-grid {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	margin-block-start: var(--wp--preset--spacing--40);
}
.wca-pt-card {
	background: #ffffff;
	border: 2px solid #0d266b;
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}
.wca-pt-card__count {
	color: #1333a6;
	font-size: 0.9rem;
	font-weight: 700;
	margin: 0;
}
.wca-pt-card__title {
	color: #0d266b;
	font-size: clamp(1.6rem, 2.6vw, 2.2rem);
	line-height: 1.1;
	margin: 0;
}
.wca-pt-card .wca-pt-card__title a {
	color: inherit;
	text-decoration: none;
}
.wca-pt-card__desc {
	margin: 0;
}
.wca-pt-card__list {
	border-block-start: 1px solid #dfe5f2;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wca-pt-card__list li {
	border-block-end: 1px solid #dfe5f2;
	padding-block: 0.55rem;
}
.wca-pt-card .wca-pt-card__list li a {
	color: #0d266b;
	text-decoration: none;
}
.wca-pt-card .wca-pt-card__list li a:hover,
.wca-pt-card .wca-pt-card__list li a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.wca-pt-card .wca-pt-card__more {
	align-self: flex-start;
	background: #1333a6;
	border-radius: 999px;
	color: #ffffff;
	font-weight: 700;
	margin-block-start: auto;
	padding: 0.55em 1.3em;
	text-decoration: none;
}
.wca-pt-card .wca-pt-card__more:hover,
.wca-pt-card .wca-pt-card__more:focus-visible {
	background: #0d266b;
}
