/* Preferred Source badge — self-contained, scoped, theme-safe. */

.poh-ps-badge {
	--poh-ps-bg: #ffffff;
	--poh-ps-text: #1f1f1f;
	--poh-ps-border: #dadce0;
	--poh-ps-radius: 999px;
	--poh-ps-pad-y: 8px;
	--poh-ps-pad-x: 14px;
	--poh-ps-font: 14px;
	--poh-ps-gap: 8px;

	display: inline-flex;
	align-items: center;
	gap: var(--poh-ps-gap);
	box-sizing: border-box;
	padding: var(--poh-ps-pad-y) var(--poh-ps-pad-x);
	border: 1px solid var(--poh-ps-border);
	border-radius: var(--poh-ps-radius);
	background: var(--poh-ps-bg);
	color: var(--poh-ps-text);
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: var(--poh-ps-font);
	font-weight: 500;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}

.poh-ps-badge:hover,
.poh-ps-badge:focus-visible {
	box-shadow: 0 1px 4px rgba(60, 64, 67, 0.25);
	border-color: #c6c9ce;
	text-decoration: none;
}

.poh-ps-badge:focus-visible {
	outline: 2px solid #4285f4;
	outline-offset: 2px;
}

.poh-ps-badge .poh-ps-g {
	flex: 0 0 auto;
	display: block;
}

.poh-ps-badge .poh-ps-label {
	color: inherit;
}

/* Dark theme */
.poh-ps-badge.poh-ps-theme-dark {
	--poh-ps-bg: #202124;
	--poh-ps-text: #e8eaed;
	--poh-ps-border: #5f6368;
}

.poh-ps-badge.poh-ps-theme-dark:hover,
.poh-ps-badge.poh-ps-theme-dark:focus-visible {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
	border-color: #80868b;
}

/* Sizes */
.poh-ps-badge.poh-ps-size-small {
	--poh-ps-pad-y: 6px;
	--poh-ps-pad-x: 11px;
	--poh-ps-font: 12.5px;
	--poh-ps-gap: 6px;
}
.poh-ps-badge.poh-ps-size-small .poh-ps-g { width: 15px; height: 15px; }

.poh-ps-badge.poh-ps-size-large {
	--poh-ps-pad-y: 11px;
	--poh-ps-pad-x: 18px;
	--poh-ps-font: 15.5px;
	--poh-ps-gap: 10px;
}
.poh-ps-badge.poh-ps-size-large .poh-ps-g { width: 20px; height: 20px; }

/* When injected into a nav menu, sit neatly on the menu baseline. */
.poh-ps-menu-item {
	display: flex;
	align-items: center;
}
.poh-ps-menu-item > .poh-ps-badge.poh-ps-in-nav {
	margin: 0;
}

/* Native Bimber header element wrapper — mirrors .g1-hb-search-form so the
   badge lines up with the social icons / search in the same cell. */
.g1-hb-poh-ps {
	display: flex;
	align-items: center;
}
.g1-hb-poh-ps .poh-ps-badge.poh-ps-in-header {
	margin: 0;
}

/* Admin preview panes */
.poh-ps-preview {
	position: relative;
	padding: 26px 18px 18px;
	border-radius: 8px;
	margin-bottom: 14px;
}
.poh-ps-preview-light { background: #f5f6f7; border: 1px solid #e2e4e7; }
.poh-ps-preview-dark  { background: #1a1a1a; border: 1px solid #333; }
.poh-ps-preview-caption {
	position: absolute;
	top: 6px;
	left: 12px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}
.poh-ps-preview-dark .poh-ps-preview-caption { color: #cfcfcf; }

/* Admin layout */
.poh-ps-layout {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	flex-wrap: wrap;
}
.poh-ps-form { flex: 1 1 560px; max-width: 760px; }
.poh-ps-preview-pane {
	flex: 0 0 300px;
	position: sticky;
	top: 40px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	padding: 16px 18px;
}
.poh-ps-stats-card {
	display: inline-flex;
	gap: 18px;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-left: 4px solid #4285f4;
	border-radius: 6px;
	padding: 10px 16px;
	margin: 14px 0 6px;
}
.poh-ps-stats-card span { color: #50575e; }

/* Social share bar row -- lets Mashshare's own mashsb-stretched styling
   fill the row edge to edge, matching how the same class behaves in
   Bimber's native top/bottom share buttons. */
.g1-hb-poh-share {
	display: block;
	width: 100%;
	padding: 6px 0;
}
