/**
 * Editor bubble and editor quote.
 *
 * The bubble reproduces AyakaCasinos' speech balloon, measured on the live site
 * (2026-11-03): a 96px round avatar with name and label under it, and a white
 * bubble with a grey border, 10px corners, a soft shadow and a pointer towards
 * the avatar, set 40px lower so the person "speaks". The brand colour comes from
 * the avatar picture itself.
 *
 * Design: docs/19-editor-bubble.md
 */

/* --------------------------------------------------------------- Bubble */

.arm-bubble {
	--arm-bubble-line: #dddddd;
	--arm-bubble-bg: #ffffff;
	--arm-bubble-ink: #222222;
	display: flex;
	align-items: flex-start;
	gap: 5px;
	margin: 1.5rem 0;
}

.arm-bubble__author {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	width: 96px;
	text-align: center;
	line-height: 1.4;
}

.arm-bubble__avatar {
	display: block;
	width: 96px;
	height: 96px;
	margin: 0 0 4px;
	border-radius: 50%;
	object-fit: cover;
}

.arm-bubble__name {
	display: block;
	color: var(--wp--preset--color--contrast, #000000);
	font-size: 12px;
	font-weight: 700;
}

.arm-bubble__label {
	display: block;
	color: var(--wp--preset--color--contrast, #000000);
	font-size: 12px;
}

.arm-bubble__text {
	position: relative;
	flex: 0 1 auto;
	min-width: 0;
	margin: 40px 0 0 10px;
	padding: 10px 14px;
	border: 1px solid var(--arm-bubble-line);
	border-radius: 10px;
	background: var(--arm-bubble-bg);
	color: var(--arm-bubble-ink);
	box-shadow: 2px 2px 3px rgb(0 0 0 / 0.35);
	font-size: 1rem;
	line-height: 1.7;
}

.arm-bubble__text > :first-child {
	margin-top: 0;
}

.arm-bubble__text > :last-child {
	margin-bottom: 0;
}

/* The pointer: a grey triangle with a white one inside, as on AyakaCasinos. */
.arm-bubble__text::before,
.arm-bubble__text::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
	border-bottom-color: transparent;
	border-left-color: transparent;
}

.arm-bubble__text::before {
	top: 19px;
	left: -12px;
	border-width: 6px;
	border-top-color: var(--arm-bubble-line);
	border-right-color: var(--arm-bubble-line);
}

.arm-bubble__text::after {
	top: 20px;
	left: -10px;
	border-width: 5px;
	border-top-color: var(--arm-bubble-bg);
	border-right-color: var(--arm-bubble-bg);
}

/* ---------------------------------------------------------------- Quote */

.arm-quote {
	--arm-quote-green: var(--arm-hd-green, #148c38);
	margin: 1.75rem 0;
	padding: 1rem 1.25rem 1.1rem;
	border: 1px solid color-mix(in srgb, var(--arm-quote-green) 25%, transparent);
	border-left: 4px solid var(--arm-quote-green);
	border-radius: 8px;
	background: color-mix(in srgb, var(--arm-quote-green) 6%, var(--wp--preset--color--surface, #ffffff));
}

/*
 * Avatar on the left; name and label stacked beside it and centred on it, with
 * or without a label: the outer rows take the spare height.
 */
.arm-quote .arm-quote__author {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr);
	grid-template-rows: 1fr auto auto 1fr;
	column-gap: 0.75rem;
	width: auto;
	margin: 0 0 0.75rem;
	text-align: left;
}

.arm-quote .arm-bubble__avatar {
	grid-row: 1 / -1;
	grid-column: 1;
	width: 56px;
	height: 56px;
	margin: 0;
}

.arm-quote .arm-bubble__name {
	grid-row: 2;
	grid-column: 2;
	font-size: 0.95rem;
}

.arm-quote .arm-bubble__label {
	grid-row: 3;
	grid-column: 2;
	font-size: 0.8rem;
	opacity: 0.8;
}

/* A plain block, not the theme's blockquote look. */
.arm-quote .arm-quote__body {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 1rem;
	font-style: normal;
	line-height: 1.8;
}

.arm-quote__title {
	margin: 0 0 0.4rem;
	font-weight: 700;
}

.arm-quote__body p:last-child {
	margin-bottom: 0;
}
