/* Daronitude: GeneratePress-like layout (white boxes on a light grey page, 70/30 sidebar) on top of Twenty Twenty-Five. */

:root {
	--dt-gap: 20px;
	--dt-pad: 30px;
}

body {
	margin: 0;
}

.wp-site-blocks {
	padding: 0;
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.dt-container {
	box-sizing: border-box;
	max-width: 1200px;
	margin-inline: auto;
	width: 100%;
}

/* ---------- header ---------- */

.dt-header {
	background: var(--wp--preset--color--base-3);
}

.dt-header-inner {
	align-items: center;
	gap: 20px;
	padding: 20px var(--dt-pad);
}

.dt-header .wp-block-site-logo img {
	height: auto;
	max-width: 250px;
}

.dt-main-nav .wp-block-navigation-item__content {
	display: block;
	line-height: 60px;
	padding: 0 20px;
}

.dt-main-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* ---------- layout ---------- */

.dt-layout {
	display: flex;
	align-items: flex-start;
	gap: var(--dt-gap);
	padding-block: var(--dt-gap);
}

.dt-content {
	flex: 0 0 calc(70% - var(--dt-gap) / 2);
	min-width: 0;
}

.dt-sidebar-area {
	flex: 0 0 calc(30% - var(--dt-gap) / 2);
	min-width: 0;
}

.dt-box {
	background: var(--wp--preset--color--base-3);
	box-sizing: border-box;
	padding: 40px;
}

.dt-content > * + *,
.dt-archive-list .wp-block-post-template > li + li,
.dt-archive-list > * + * {
	margin-top: var(--dt-gap);
}

.dt-archive-list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- articles ---------- */

.dt-article > * + * {
	margin-block-start: 0;
}

.dt-article-image {
	margin: 0 0 2em;
}

.dt-article-image img,
.dt-archive-image img {
	display: block;
	height: auto;
	width: 100%;
}

.dt-entry-title {
	margin: 0 0 0.25em;
	overflow-wrap: break-word;
}

.dt-archive-item .dt-entry-title {
	font-size: 30px;
}

.dt-entry-meta {
	margin: 0 0 1.5em;
}

.dt-archive-image {
	margin: 0 0 1.5em;
}

.dt-entry-content > * {
	margin-block: 0 1.5em;
}

.dt-entry-content > h2,
.dt-entry-content > h3,
.dt-entry-content > h4 {
	margin-block: 1.2em 0.6em;
}

.dt-entry-content > :first-child {
	margin-top: 0;
}

.dt-entry-content > :last-child {
	margin-bottom: 0;
}

.dt-entry-content ul,
.dt-entry-content ol {
	padding-left: 1.5em;
}

.dt-entry-summary p {
	margin: 0;
}

.dt-entry-summary .wp-block-post-excerpt__more-text {
	margin-top: 1em;
}

/* ---------- home & rubrique intros: post lists ---------- */

.dt-post-list .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dt-post-list .wp-block-post + .wp-block-post {
	margin-top: 1em;
}

.dt-post-list .wp-block-columns {
	gap: 1em;
	margin: 0;
}

.dt-post-list .wp-block-post-featured-image {
	margin: 0;
}

.dt-post-list .wp-block-post-featured-image img {
	border-radius: 4px;
	object-fit: cover;
}

.dt-post-list .wp-block-post-title {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0;
}

.dt-post-list .wp-block-post-title a {
	color: var(--wp--preset--color--accent);
}

.dt-home h2,
.dt-category-intro h2 {
	margin-block: 0.5em 0.8em;
}


.wp-block-separator.is-style-dots {
	margin-block: 1.5em;
}

.dt-entry-content .wp-block-buttons,
.dt-category-intro .wp-block-buttons {
	margin-top: 1.5em;
}

/* ---------- rubrique header ---------- */

.dt-page-title {
	margin: 0;
}

.dt-category-intro {
	margin-top: 1.5em;
}

.dt-category-intro > * + * {
	margin-top: 1.2em;
}

/* ---------- pagination ---------- */

.dt-pagination {
	gap: 0.6em;
	padding-block: 20px;
}

.dt-pagination .page-numbers.current {
	font-weight: 700;
}

/* ---------- sidebar ---------- */

.dt-widget {
	background: var(--wp--preset--color--base-3);
	padding: var(--dt-pad);
}

.dt-widget-title {
	font-size: 29px;
	font-weight: 400;
	margin: 0 0 1em;
}

.dt-latest {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dt-latest li {
	margin: 0 0 1.2em;
}

.dt-latest li:last-child {
	margin-bottom: 0;
}

.dt-latest .wp-block-latest-posts__featured-image {
	margin-bottom: 0.4em;
}

.dt-latest .wp-block-latest-posts__featured-image img {
	display: block;
	height: auto;
	width: 100%;
}

.dt-latest .wp-block-latest-posts__post-title {
	color: var(--wp--preset--color--accent);
	font-size: 17px;
	line-height: 1.3;
}

/* ---------- footer ---------- */

.dt-footer {
	background: var(--wp--preset--color--base-3);
	font-size: 15px;
	padding: 20px var(--dt-pad);
}

.dt-footer-nav {
	gap: 0 1.5em;
	justify-content: center;
}

.dt-footer-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

.dt-copyright {
	margin: 0.6em 0 0;
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {
	:root {
		--dt-pad: 20px;
	}

	.dt-layout {
		display: block;
		padding-inline: 0;
	}

	.dt-sidebar-area {
		margin-top: var(--dt-gap);
	}

	.dt-box {
		padding: 30px var(--dt-pad);
	}

	.dt-header-inner {
		padding: 10px var(--dt-pad);
	}

	.dt-main-nav .wp-block-navigation-item__content {
		line-height: 1.5;
		padding: 0.4em 0;
	}

	h1,
	.dt-entry-title {
		font-size: 30px;
	}

	.dt-archive-item .dt-entry-title {
		font-size: 25px;
	}

	.dt-entry-content h2,
	.dt-home h2,
	.dt-category-intro h2 {
		font-size: 25px;
	}

	.dt-entry-content h3 {
		font-size: 22px;
	}
}

/* ---------- single: rubrique + previous post ---------- */

.dt-entry-footer {
	font-size: 16px;
	margin-top: 2em;
}

.dt-entry-footer > * {
	margin: 0.3em 0 0;
}
