/*
Theme Name: Foxiz Child
Theme URI: https://buttercup.com/
Description: Child theme for Foxiz. Holds Buttercup's byline, trust-badge and author customisations so they survive Foxiz updates.
Author: Buttercup
Template: foxiz
Version: 1.0.0
Text Domain: foxiz-child
*/

/* ==========================================================================
   Trust badges — Ad Disclosure / Why Trust Us
   Markup comes from Foxiz Theme Options > Single Post > Affiliate Disclosure.
   ========================================================================== */

.reader-disclosure { margin-bottom: 18px; }
.bc-trust { margin: 14px 0 0; }

.bc-trust .bc-pill {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 8px 16px !important;
	border: 1px solid rgba(128, 128, 128, .45) !important;
	border-radius: 999px !important;
	color: inherit !important;
	text-decoration: none !important;
	line-height: 1.25 !important;
	transition: background-color .15s, border-color .15s;
}

.bc-trust .bc-pill:hover {
	background: rgba(128, 128, 128, .13);
	border-color: currentColor !important;
}

.bc-trust .bc-pill:before {
	content: '';
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
	background: currentColor;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.bc-trust .bc-pill-ad:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16.5v-5'/%3E%3Cpath d='M12 7.9h.01'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 16.5v-5'/%3E%3Cpath d='M12 7.9h.01'/%3E%3C/svg%3E");
}

.bc-trust .bc-pill-trust:before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l7.5 3.2v5.6c0 4.7-3.2 8.6-7.5 9.8-4.3-1.2-7.5-5.1-7.5-9.8V5.7z'/%3E%3Cpath d='M8.9 12.1l2.2 2.2 4-4.3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l7.5 3.2v5.6c0 4.7-3.2 8.6-7.5 9.8-4.3-1.2-7.5-5.1-7.5-9.8V5.7z'/%3E%3Cpath d='M8.9 12.1l2.2 2.2 4-4.3'/%3E%3C/svg%3E");
}

@media (max-width: 600px) {
	.bc-trust .bc-pill { font-size: 12px !important; padding: 7px 13px !important; }
	.bc-trust .bc-pill:before { width: 14px; height: 14px; flex: 0 0 14px; }
}

/* ==========================================================================
   Byline — author job title
   The span is appended by functions.php via get_the_author_display_name.
   Hidden everywhere by default, shown only in the single-post byline and
   the author box, so related-post meta stays clean.
   ========================================================================== */

.bc-job { display: none; }

.single-meta .bc-job,
.author-box .bc-job,
.author-page-header .bc-job {
	display: inline;
	margin-left: .5em;
	color: #3f8b49;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
}

/* Foxiz dark mode */
body.is-dark .single-meta .bc-job,
body.is-dark .author-box .bc-job,
html[data-theme="dark"] .single-meta .bc-job,
html[data-theme="dark"] .author-box .bc-job { color: #7fc98a; }

/* ==========================================================================
   Byline — hide "Last updated" when the post was never actually updated.
   body class is added by functions.php.
   ========================================================================== */

body.bc-not-updated .single-meta .meta-update { display: none !important; }
