/**
 * Methods box — PRC-style collapsible details (plus/minus via summary::after).
 */

.bri-methods-box-wrap {
	max-width: 100%;
	margin: 12px 0;
}

.bri-methods-box.bri-methods-box,
.bri-methods-box.wp-block-details {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fafafa;
	padding: 0;
}

.bri-methods-box > summary.bri-methods-box__summary,
.bri-methods-box > summary {
	list-style: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.35;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 0.35em;
	color: #1f2937;
}

.bri-methods-box > summary::-webkit-details-marker {
	display: none;
}

.bri-methods-box.is-style-bri-methods-plus > summary::after,
.bri-methods-box > summary::after {
	content: "";
	display: block;
	margin-left: auto;
	width: 0.875em;
	height: 0.875em;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151'%3E%3Cpath d='M19 11H13V5h-2v6H5v2h6v6h2v-6h6z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.bri-methods-box.is-style-bri-methods-plus[open] > summary::after,
.bri-methods-box[open] > summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23374151'%3E%3Cpath d='M19 13H5v-2h14v2z'/%3E%3C/svg%3E");
}

.bri-methods-box__content {
	padding: 0 12px 12px;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #374151;
	border-top: 1px solid #e5e7eb;
}

.bri-methods-box__content h3,
.bri-methods-box__content h4 {
	margin: 12px 0 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #4b5563;
}

.bri-methods-box__content p {
	margin: 0 0 8px;
}

.bri-methods-box__content ul {
	margin: 0 0 10px 1.1em;
	padding: 0;
}

.bri-methods-box-missing {
	font-size: 13px;
	color: #b32d2e;
	padding: 8px;
	background: #fcf0f1;
	border-left: 3px solid #b32d2e;
}
