/* ==========================================================================
   Buttons — core/button styles.
   Default (fill) is set in theme.json: pine pill, px-7 py-4, text-lg extrabold.
   Styles: is-style-outline · is-style-efa-leaf · is-style-efa-outline-light ·
   is-style-efa-text. Icons: add efa-icon-{name} (+ efa-icon-after / efa-icon-red).
   ========================================================================== */

/* Rows of buttons: gap-3, and equal heights within a row (flex stretch). */
.wp-block-buttons.is-layout-flex {
	gap: 0.75rem;
	align-items: stretch;
}

.wp-block-buttons > .wp-block-button {
	display: flex;
	margin: 0;
}

.wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none;
	transition: background-color 0.15s var(--efa-ease), color 0.15s var(--efa-ease), border-color 0.15s var(--efa-ease);
}

/* Larger leading icon + gap-3 ("Listen to the Latest") */
.wp-block-button.efa-btn-lg-icon .wp-block-button__link {
	gap: 0.75rem;
	--efa-icon-size: 1.5rem;
}

.wp-block-button.efa-btn-shadow .wp-block-button__link {
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* ---- Outline (border-2 border-pine text-pine font-bold → hover fill) ---- */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--pine);
	background: transparent;
	color: var(--wp--preset--color--pine);
	font-weight: 700;
	padding: 1rem 1.75rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--pine);
	color: #fff;
}

/* ---- Leaf (bg-leaf text-pine-dark extrabold) ---- */
.wp-block-button.is-style-efa-leaf > .wp-block-button__link {
	background: var(--wp--preset--color--leaf);
	color: var(--wp--preset--color--pine-dark);
}

.wp-block-button.is-style-efa-leaf > .wp-block-button__link:hover {
	background: var(--wp--preset--color--leaf-deep);
	color: #fff;
}

/* On dark bands the leaf button lightens to white on hover. */
.has-pine-dark-background-color .wp-block-button.is-style-efa-leaf > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--pine-dark);
}

/* ---- Outline on dark (border-white/40 text-white font-bold) ---- */
.wp-block-button.is-style-efa-outline-light > .wp-block-button__link {
	border: 2px solid rgb(255 255 255 / 0.4);
	background: transparent;
	color: #fff;
	font-weight: 700;
}

.wp-block-button.is-style-efa-outline-light > .wp-block-button__link:hover {
	border-color: #fff;
	background: rgb(255 255 255 / 0.1);
}

/* ---- Text link with arrow (font-display text-lg font-bold text-pine) ---- */
.wp-block-button.is-style-efa-text > .wp-block-button__link {
	background: none;
	padding: 0;
	border-radius: 0;
	color: var(--wp--preset--color--pine);
	font-weight: 700;
}

.wp-block-button.is-style-efa-text > .wp-block-button__link:hover {
	background: none;
	color: var(--wp--preset--color--pine-deep);
}

/* Card footers use the base size (text-base) */
.efa-card__link .wp-block-button.is-style-efa-text > .wp-block-button__link {
	font-size: 1rem;
	line-height: 1.5rem;
}

/* ---- Header "Support Us" (px-5 py-2.5 text-[17px] shadow-sm) ---- */
.efa-header__support .wp-block-button__link {
	padding: 0.625rem 1.25rem;
	font-size: 17px;
	line-height: 1.6; /* text-[17px] inherits the body's 1.6 */
	box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--efa-icon-size: 1.125rem;
}
