/**
 * Carlos Custom Social Media Summary — front-end styles
 * Expanded summary body must match article typography exactly.
 * Meta "Summary" control stays metadata-styled (not a blue link).
 */

.chomcho-ss-wrap {
	margin: 0 0 1.25em;
}

.chomcho-ss-details {
	border: 0;
	margin: 0;
	padding: 0;
}

/* Native <summary> looks like post metadata (fallback when not injected into entry-meta) */
.chomcho-ss-details > summary.chomcho-ss-summary-trigger {
	list-style: none;
	cursor: pointer;
	display: inline;
	font: inherit;
	font-size: 0.9em;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	opacity: 0.8;
	text-decoration: none;
}

.chomcho-ss-details > summary.chomcho-ss-summary-trigger::-webkit-details-marker {
	display: none;
}

/* When entry-meta button exists, hide native summary visually (clip — not display:none) */
.chomcho-ss-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Exact match to article body: inherit typeface, size, weight, line-height, color */
.chomcho-ss-body,
.entry-content .chomcho-ss-body,
.ct-container .chomcho-ss-body,
article .chomcho-ss-body {
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	font-style: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	opacity: 1;
	padding: 0.75em 0 0.25em;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin-top: 0.35em;
}

/* Prefer matching Blocksy / theme entry content typography when available */
.entry-content .chomcho-ss-body,
.ct-entry-content .chomcho-ss-body,
.wp-block-post-content .chomcho-ss-body {
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.chomcho-ss-body p {
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
	margin: 0 0 1em;
}

.chomcho-ss-body p:last-child {
	margin-bottom: 0;
}

/* Meta-line "Summary" control — looks like author/date, not a blue link */
.chomcho-ss-meta-link {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	opacity: inherit;
	cursor: pointer;
	text-decoration: none;
	box-shadow: none;
}

.chomcho-ss-meta-link:hover,
.chomcho-ss-meta-link:focus {
	text-decoration: none;
	opacity: 0.85;
	outline: none;
}

.chomcho-ss-meta-link:focus-visible {
	outline: 1px dotted currentColor;
	outline-offset: 2px;
}

.chomcho-ss-meta-sep {
	font: inherit;
	color: inherit;
	opacity: inherit;
	user-select: none;
}

.chomcho-ss-meta-link[aria-expanded="true"] {
	font-weight: 600;
}


/* Span fallback only — Blocksy li.meta-summary must stay a list-item for ::after slashes */
span.chomcho-ss-meta-item {
	display: inline;
	white-space: normal;
}
li.chomcho-ss-meta-item,
li.meta-summary.chomcho-ss-meta-item {
	display: list-item;
	white-space: normal;
}

.chomcho-ss-meta-sep {
	display: inline;
	white-space: pre; /* keep exact " / " spaces */
}


.chomcho-ss-meta-link,
.chomcho-ss-details > summary.chomcho-ss-summary-trigger {
	text-transform: uppercase;
}


/* Force Summary meta control to match Blocksy meta siblings exactly */
.entry-meta .chomcho-ss-meta-link,
.ct-meta-elements .chomcho-ss-meta-link,
.ct-entry-meta .chomcho-ss-meta-link,
.chomcho-ss-meta-link {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	font: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	font-style: inherit !important;
	line-height: inherit !important;
	letter-spacing: inherit !important;
	text-transform: uppercase !important;
	color: inherit !important;
	opacity: inherit !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: none !important;
	vertical-align: baseline !important;
}

.chomcho-ss-meta-link:hover,
.chomcho-ss-meta-link:focus,
.chomcho-ss-meta-link:focus-visible,
.chomcho-ss-meta-link[aria-expanded="true"] {
	font-weight: inherit !important;
	text-decoration: none !important;
	opacity: inherit !important;
	color: inherit !important;
	outline: none !important;
}

.chomcho-ss-meta-item,
.chomcho-ss-meta-sep {
	font: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	letter-spacing: inherit !important;
	color: inherit !important;
	opacity: inherit !important;
	text-transform: none; /* separators stay as / */
	vertical-align: baseline !important;
}

.chomcho-ss-meta-sep {
	white-space: pre !important;
}


/* Keep SUMMARY button from eating adjacent separator spaces */
.entry-meta .chomcho-ss-meta-link,
.ct-meta-elements .chomcho-ss-meta-link,
.ct-entry-meta .chomcho-ss-meta-link,
.chomcho-ss-meta-link {
	display: inline !important;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

span.chomcho-ss-meta-item {
	display: inline !important;
}
/* Match Blocksy meta items — list-item wraps SUMMARY onto its own line */
ul.entry-meta > li.meta-summary.chomcho-ss-meta-item,
ul.entry-meta > li.chomcho-ss-meta-item,
li.meta-summary.chomcho-ss-meta-item,
li.chomcho-ss-meta-item {
	display: inline-block !important;
	vertical-align: baseline !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	width: auto !important;
	max-width: none !important;
}

.chomcho-ss-meta-sep {
	display: inline !important;
	white-space: pre !important;
}

/* Meta separators: exact single " / " — no extra margin (Blocksy already spaces siblings) */
.entry-meta .chomcho-ss-meta-sep,
.ct-meta-elements .chomcho-ss-meta-sep,
.ct-entry-meta .chomcho-ss-meta-sep,
.chomcho-ss-meta-sep {
	display: inline !important;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: pre !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}

/* Admin-only front-end copy chips — match Blocksy .entry-tags-items a tag look */
.chomcho-ss-front-copy-wrap {
	margin: 0 0 0.75em;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0.55em;
	text-align: center;
	width: 100%;
}

.chomcho-ss-front-copy-sep {
	display: inline-block;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	opacity: 0.85;
	user-select: none;
}

.chomcho-ss-front-copy {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: inherit !important;
	/* Slightly darker fill than Blocksy category/tag chips (those use transparent + inset border) */
	background: rgba(0, 0, 0, 0.08) !important;
	border: 1px solid currentColor !important;
	border-radius: var(--theme-border-radius, 3px);
	padding: 0.3em 0.85em;
	box-shadow: none;
	text-decoration: none !important;
	opacity: 0.95;
}

.chomcho-ss-front-copy:hover,
.chomcho-ss-front-copy:focus {
	background: rgba(0, 0, 0, 0.12) !important;
	border-color: currentColor !important;
	color: inherit !important;
	outline: none;
	text-decoration: none !important;
	opacity: 1;
}

.chomcho-ss-front-copy:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.chomcho-ss-front-copy.is-copying,
.chomcho-ss-front-copy[aria-disabled="true"] {
	opacity: 0.7;
	cursor: default;
	pointer-events: none;
}

.chomcho-ss-front-copy-icon {
	display: none;
}


/* 1.1.8: hide any leftover manual sep spans from older plugin versions */
.entry-meta .chomcho-ss-meta-sep,
.ct-meta-elements .chomcho-ss-meta-sep,
.ct-entry-meta .chomcho-ss-meta-sep,
.chomcho-ss-meta-sep {
	display: none !important;
}

/*
 * Exact meta separators: one space, slash, one space — same for every item.
 * Override Blocksy’s bare "/" + margin so Admin / Date / SUMMARY / Categories match.
 */
ul.entry-meta[data-type*="slash"] > li:not(:last-of-type)::after,
.entry-meta[data-type*="slash"] > li:not(:last-of-type)::after {
	content: " / " !important;
	margin: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
}
