/*
 * Small shared pieces the Kadence blocks drew that core blocks have no setting for.
 * Each rule is scoped to a class the converter or the footer part puts on the block.
 */

/* Social icons (from Kadence icon rows): 20px icons, 32px apart, taupe turning ink on hover. */
.wp-block-social-links.b33-icons-20 {
	font-size: 20px;
	line-height: 0;
	column-gap: 32px;
}
.wp-block-social-links.b33-icons-20 .wp-social-link svg {
	width: 20px;
	height: 20px;
}
.wp-block-social-links.b33-icons-hover .wp-social-link:hover,
.wp-block-social-links.b33-icons-hover .wp-social-link:focus-within {
	color: var(--wp--preset--color--main) !important;
}

/* Partnerships list: Kadence's yellow dot-circle icon as the marker, 10px before the text. */
.wp-block-list.b33-icon-list {
	display: grid;
	row-gap: 5px;
	padding-left: 0;
	margin-left: 0;
	list-style: none;
}
.wp-block-list.b33-icon-list > li {
	display: flex;
	align-items: center;
	min-height: 28px;
	margin: 0;
}
.wp-block-list.b33-icon-list > li::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	background-color: var(--wp--preset--color--primary);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z'/></svg>") center / contain no-repeat;
}

/* Home "Read More" pill: Kadence's right arrow, 15px, 8px after the text. */
.wp-block-read-more.b33-read-more,
.is-layout-flex.is-vertical > .wp-block-read-more.b33-read-more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	width: fit-content;
}
.wp-block-read-more.b33-read-more::after {
	content: "";
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'><path d='M27 13.953c0 0.141-0.063 0.281-0.156 0.375l-6 5.531c-0.156 0.141-0.359 0.172-0.547 0.094-0.172-0.078-0.297-0.25-0.297-0.453v-3.5h-19.5c-0.281 0-0.5-0.219-0.5-0.5v-3c0-0.281 0.219-0.5 0.5-0.5h19.5v-3.5c0-0.203 0.109-0.375 0.297-0.453s0.391-0.047 0.547 0.078l6 5.469c0.094 0.094 0.156 0.219 0.156 0.359v0z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 28'><path d='M27 13.953c0 0.141-0.063 0.281-0.156 0.375l-6 5.531c-0.156 0.141-0.359 0.172-0.547 0.094-0.172-0.078-0.297-0.25-0.297-0.453v-3.5h-19.5c-0.281 0-0.5-0.219-0.5-0.5v-3c0-0.281 0.219-0.5 0.5-0.5h19.5v-3.5c0-0.203 0.109-0.375 0.297-0.453s0.391-0.047 0.547 0.078l6 5.469c0.094 0.094 0.156 0.219 0.156 0.359v0z'/></svg>") center / contain no-repeat;
}

/* Footer links (was Code Snippet #13, which attached to Kadence's stylesheet):
   thin 1px underline 4px below the text, in a yellow a little darker than the footer. */
.b33-footer-links a {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	text-decoration-color: #dfbb32;
}
.b33-footer-links a:hover,
.b33-footer-links a:focus-visible {
	text-decoration-color: currentColor;
}
/* The links carry an inline text-decoration shorthand, which resets thickness and color. */
.wp-block-button.b33-legal-link .wp-block-button__link {
	text-decoration-line: underline;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 4px;
	text-decoration-color: #c99f1f !important;
}
.wp-block-button.b33-legal-link .wp-block-button__link:hover,
.wp-block-button.b33-legal-link .wp-block-button__link:focus-visible {
	text-decoration-color: currentColor !important;
}
/* The policy links are 24px tall; their button wrapper would otherwise take the 27px
   line height of the surrounding text (Kadence's links had no wrapper). */
.wp-block-button.b33-legal-link {
	line-height: 0;
}

/* Core prints the per-screen alignment, but the block's static justification class
   (.is-content-justification-right) outranks it, so the phone rule is repeated here. */
@media (max-width: 767px) {
	.wp-block-buttons.b33-legal-links.is-content-justification-right {
		justify-content: flex-start;
	}
}
