/* ============================================================
   Entity SEO Builder — Block Front-end Styles
   ============================================================ */

/* ---- Entity Score Block ---- */
.esb-score-block {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	max-width: 320px;
}

.esb-score-block-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.esb-score-block-ring {
	position: relative;
	flex-shrink: 0;
}

.esb-score-block-ring svg {
	display: block;
	transform: rotate(-90deg);
}

.esb-score-block-num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
}

.esb-score-block-grade {
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	display: block;
}

.esb-score-block-label {
	margin: 4px 0 0;
	font-size: 12px;
	color: #6b7280;
}

.esb-score-block-factors {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border-top: 1px solid #e5e7eb;
	padding-top: 12px;
}

.esb-score-block-factors li {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #374151;
	padding: 3px 0;
}

.esb-score-block-factor-val {
	font-weight: 600;
	color: #111827;
}

.esb-score-block-entities {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border-top: 1px solid #e5e7eb;
	padding-top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.esb-score-block-entity-name {
	font-size: 12px;
	font-weight: 600;
	background: #eff6ff;
	color: #1e40af;
	padding: 3px 8px;
	border-radius: 100px;
}

.esb-score-block-entity-type {
	display: none;
}

/* ---- FAQ Block ---- */
.esb-faq-block {
	--esb-faq-radius: 6px;
	margin: 1.5em 0;
}

.esb-faq-item {
	border: 1px solid #e5e7eb;
	border-radius: var(--esb-faq-radius);
	margin-bottom: 8px;
	overflow: hidden;
}

.esb-faq-question {
	padding: 14px 16px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	user-select: none;
	background: #fff;
	color: #111827;
}

.esb-faq-question::-webkit-details-marker { display: none; }

.esb-faq-question::after {
	content: '+';
	font-size: 20px;
	font-weight: 300;
	color: #6b7280;
	flex-shrink: 0;
	transition: transform .2s ease;
}

details[open] > .esb-faq-question::after {
	content: '−';
}

.esb-faq-answer {
	padding: 0 16px 14px;
	font-size: 14px;
	color: #374151;
	line-height: 1.7;
	background: #fff;
}

.esb-faq-answer p:first-child { margin-top: 0; }
.esb-faq-answer p:last-child  { margin-bottom: 0; }

/* editor placeholder */
.esb-faq-empty {
	border: 1px dashed #d1d5db;
	border-radius: 6px;
	padding: 20px;
	text-align: center;
	color: #9ca3af;
	font-size: 13px;
}

/* editor item list */
.esb-faq-editor { padding: 4px 0; }

.esb-faq-editor-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
}

.esb-faq-editor-item-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}
