/*
 * GEAR social: share bar icons, profile links, newsletter form, reactions.
 * Layout of the share rail/row lives in reading.css; this file only sizes the
 * SVG icons and styles the pieces printed by inc/social.php.
 */

/* Share buttons use core social-link SVGs */
.gear-share__btn svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* Profile links (core social-links block printed by gear_social_links_markup) */
.gear-social.wp-block-social-links { gap: 8px; }
.gear-social .wp-block-social-link a { transition: transform .2s var(--gear-ease), opacity .2s var(--gear-ease); }
.gear-social .wp-block-social-link a:hover { transform: translateY(-2px); }

/* Author contact icons */
.gear-author-social { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: .6rem; }
.gear-author-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-color);
	color: var(--wp--preset--color--heading);
	background: var(--wp--preset--color--base);
	text-decoration: none;
	transition: background .2s var(--gear-ease), color .2s var(--gear-ease), border-color .2s var(--gear-ease);
}
.gear-author-social__link svg { width: 16px; height: 16px; fill: currentColor; }
.gear-author-social__link:hover,
.gear-author-social__link:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Newsletter form */
.gear-newsletter { max-width: 520px; }
.gear-newsletter__row { display: flex; gap: 8px; flex-wrap: wrap; }
.gear-newsletter__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 1rem;
	border: 1px solid var(--wp--preset--color--border-color);
	border-radius: var(--gear-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--heading);
}
.gear-newsletter__input:focus { border-color: var(--wp--preset--color--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent); }
.gear-newsletter__btn {
	flex: 0 0 auto;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--gear-radius);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}
.gear-newsletter__btn:hover { background: var(--wp--preset--color--secondary); }
.gear-newsletter__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gear-newsletter__consent { display: flex; gap: 8px; align-items: flex-start; margin-block-start: 10px; font-size: .875rem; line-height: 1.45; opacity: .85; }
.gear-newsletter__consent input { margin-block-start: 3px; }
.gear-newsletter--footer .gear-newsletter__input { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 22%); color: inherit; }
.gear-newsletter--footer .gear-newsletter__input::placeholder { color: inherit; opacity: .6; }

/* Newsletter box after an article */
.gear-newsletter-box {
	margin-block: 2.5rem 0;
	padding: 28px;
	border-radius: var(--gear-radius-lg);
	background: var(--wp--preset--color--primary-light);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
}
.gear-newsletter-box__title { margin: 0 0 .4rem; font-size: 1.75rem; text-transform: uppercase; }
.gear-newsletter-box__text { margin: 0 0 1rem; }
.gear-newsletter-box .gear-newsletter__cta { margin: 0; }

/* Reactions container: invisible until a plugin fills it */
.gear-reactions:empty { display: none; }
.gear-reactions { margin-block: 2rem 0; }
