/*
Theme Name: RecipeDiffusion
Description: The RecipeDiffusion website: Twenty Twenty-Five with the brand's header, footer, colors and font, and wide pages for the RecipeDiffusion page sections. Edit the header, footer and menus in Appearance > Editor.
Template: twentytwentyfive
Version: 1.2.3
Requires at least: 6.7
Requires PHP: 7.4
Author: RecipeDiffusion
Text Domain: recipediffusion
*/

/* Page sections ---------------------------------------------------------------
   Each RecipeDiffusion section is a Custom HTML block (<style> then <section class="rdh ...">) that sets its own
   width inside. Let it span the page and sit flush against the next one; ordinary blocks keep the reading column. */
.wp-block-post-content > section.rdh {
	max-width: none;
	margin-block: 0;
}

.wp-block-post-content > style + section.rdh {
	margin-block-start: 0;
}

main.rd-main {
	margin-block-start: 0;
}

/* Elementor pages on the default template: let Elementor's layout span the page like the sections above (its own
   containers set the width inside), instead of the narrow reading column. Keeps the theme's header and footer, which
   Elementor's Full Width and Canvas layouts can't show with a block theme. */
.wp-block-post-content > .elementor {
	max-width: none;
	margin-block: 0;
}

/* ...and reach the page edges: the post content keeps a side gap for ordinary blocks (the site's root padding), so the
   Elementor layout steps back out of it. Its boxed sections keep their own width and gap inside. */
.wp-block-post-content.has-global-padding > .elementor {
	margin-left: calc(var(--wp--style--root--padding-left) * -1) !important;
	margin-right: calc(var(--wp--style--root--padding-right) * -1) !important;
	width: auto;
}

/* Header ------------------------------------------------------------------- */
.rd-header {
	background: #fff;
	border-bottom: 1px solid #e7e4f2;
}

/* The menu and Download button stay on the right, even if the logo spot is ever empty. */
.rd-header > .wp-block-group > .wp-block-group:last-child {
	margin-left: auto;
}

.rd-header .rd-theme-logo img,
.rd-footer .rd-theme-logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.rd-header .wp-block-navigation {
	font-weight: 600;
	font-size: 16px;
}

.rd-header .wp-block-navigation a {
	color: #14102b;
}

.rd-header .wp-block-navigation a:hover,
.rd-header .wp-block-navigation a:focus-visible,
.rd-header .wp-block-navigation .current-menu-item > a {
	color: #5b21b6;
}

/* The Features dropdown */
.rd-header .wp-block-navigation__submenu-container {
	min-width: 240px;
	padding: 8px 0;
	border: 1px solid #e7e4f2 !important;
	border-radius: 12px;
	box-shadow: 0 18px 40px -24px rgba(20, 16, 43, 0.35);
	font-weight: 600;
}

.rd-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px;
}

.rd-btn-download .wp-block-button__link {
	background: #5b21b6;
	color: #fff;
	border-radius: 10px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 10px 22px -12px rgba(91, 33, 182, 0.55);
}

.rd-btn-download .wp-block-button__link:hover {
	color: #fff;
	background: #4a1a99;
}

@media (max-width: 600px) {
	.rd-header .wp-block-site-logo img {
		width: 150px !important;
	}

	.rd-header .rd-btn-download {
		display: none;
	}
}

/* Footer ------------------------------------------------------------------- */
.rd-footer {
	background: #f5f3fb;
	border-top: 1px solid #e7e4f2;
	color: #4b4763;
	font-size: 15px;
}

.rd-footer .wp-block-site-tagline {
	color: #6e6886;
	margin-top: 12px;
}

.rd-footer-heading {
	color: #5b21b6;
	font-size: 13px !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.rd-footer .wp-block-navigation {
	gap: 10px;
}

.rd-footer .wp-block-navigation a {
	color: #4b4763;
}

.rd-footer .wp-block-navigation a:hover,
.rd-footer .wp-block-navigation a:focus-visible {
	color: #5b21b6;
}

.rd-footer-copy {
	border-top: 1px solid #e7e4f2;
	color: #6e6886;
	font-size: 14px;
	margin-top: 40px;
	padding-top: 24px;
}

/* 404 page ------------------------------------------------------------------ */
.rd-404 .rd-404-picture img {
	width: 100%;
	max-width: 720px;
	height: auto;
}

.rd-404 .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid #ddd3e3;
	color: #14102b;
	background: #fff;
}

.rd-404 .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: #5b21b6;
	color: #5b21b6;
}

.rd-404 .rd-404-search {
	max-width: 480px;
	margin-inline: auto;
}
