/*
Theme Name: Orianne
Theme URI: https://orianne.xyod.com/
Description: Child theme of Hello Xyod for the Orianne site. Site-specific branding and overrides live here.
Author: Xyod
Author URI: https://xyod.com/
Template: hello-xyod
Version: 1.0.15
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: orianne
*/

/**
 * Orianne — site-specific styles.
 * Keep shared / reusable styles in Hello Xyod or the xyod-elementor plugin.
 */

:root {
	/* Match Accent / button letter-spacing in Site Settings. */
	--orianne-button-letter-spacing: 1.4px;
}

/*
 * Headings: no default bottom margin in layouts (heroes, sections, Elementor).
 * Use Elementor widget margin / container gap for spacing.
 * Parent Hello Xyod reset also sets margin-block-end — clear both.
 */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget-heading .elementor-heading-title {
	margin-bottom: 0;
	margin-block-end: 0;
}

/*
 * Post / article body only — readable space under headings in prose.
 * Theme Post Content (Elementor single) + classic single posts without Elementor canvas.
 */
.elementor-widget-theme-post-content h1,
body.single-post:not(.elementor-page) .page-content h1 {
	margin-bottom: 0.5em;
	margin-block-end: 0.5em;
}

.elementor-widget-theme-post-content h2,
body.single-post:not(.elementor-page) .page-content h2 {
	margin-bottom: 0.45em;
	margin-block-end: 0.45em;
}

.elementor-widget-theme-post-content h3,
body.single-post:not(.elementor-page) .page-content h3 {
	margin-bottom: 0.4em;
	margin-block-end: 0.4em;
}

.elementor-widget-theme-post-content h4,
body.single-post:not(.elementor-page) .page-content h4 {
	margin-bottom: 0.35em;
	margin-block-end: 0.35em;
}

.elementor-widget-theme-post-content h5,
.elementor-widget-theme-post-content h6,
body.single-post:not(.elementor-page) .page-content h5,
body.single-post:not(.elementor-page) .page-content h6 {
	margin-bottom: 0.3em;
	margin-block-end: 0.3em;
}

/*
 * Button letter-spacing adds space after every character, including the last.
 * Pull the text back by the same amount so left/right padding look equal.
 */
.elementor-button .elementor-button-text {
	margin-inline-end: calc(-1 * var(--orianne-button-letter-spacing));
}

/*
 * Linked headings wrap the title in <a>. Site Settings “Link” typography
 * (Nunito) would otherwise replace the heading font (Cormorant Garamond).
 */
.elementor-widget-heading .elementor-heading-title a,
.elementor-widget-xyod-heading .xyod-heading a,
.elementor-widget-xyod-heading .xyod-heading a:hover,
.elementor-widget-xyod-heading .xyod-heading a:focus,
.elementor-widget-xyod-posts .xyod-posts__title a,
.elementor-widget-xyod-posts .xyod-posts__title a:hover,
.elementor-widget-xyod-posts .xyod-posts__title a:focus,
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: inherit !important;
	color: inherit;
}

/*
 * Site Settings Link hover empty still used Hello Xyod’s default #336 blue.
 * Keep current text color unless kit / widget sets a hover color.
 */
a:hover,
a:focus,
a:active {
	color: inherit;
}

/*
 * Elementor Nested Accordion — push toggle icon to the far right of each row.
 * Add CSS class "orianne-accordion--icon-right" on the Accordion widget
 * (Advanced → CSS Classes).
 */
.orianne-accordion--icon-right .e-n-accordion-item-title {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
}

.orianne-accordion--icon-right .e-n-accordion-item-title-header {
	flex: 1 1 auto !important;
	min-width: 0;
	padding-inline-end: 12px;
}

.orianne-accordion--icon-right .e-n-accordion-item-title-icon {
	margin-inline-start: auto !important;
	flex-shrink: 0;
}
