/* Listen buttons for parts of interactive activities (element-audio.js) */
.el-audio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #f0f0f0;
	cursor: pointer;
	vertical-align: middle;
	transition: background-color 0.3s ease;
}
.el-audio:hover { background: #e0e0e0; }
.el-audio svg { width: 16px; height: 16px; fill: currentColor; }
.el-audio:focus-visible { outline: 3px solid #2e84ff; outline-offset: 2px; }
.el-audio.playing { box-shadow: 0 0 0 3px rgba(0, 129, 141, 0.45); }

/* Placement inside components */
.el-audio-row { display: flex; align-items: flex-start; gap: 12px; }
.el-audio-row > p, .el-audio-row > div { flex: 1; margin-top: 0; }
.flip-card-inner .el-audio { margin-top: 8px; }
.table-teal .el-audio { margin-top: 6px; }
.answer-pill .el-audio { margin-left: 10px; width: 28px; height: 28px; position: relative; z-index: 2; }
.answer-pill .el-audio svg { width: 14px; height: 14px; }
.slider-tabs ~ .content .el-audio { float: right; margin: 0 0 8px 12px; }

/* The explanation under a row of answer pills: room between the pills and the words. */
.pill-row + .el-audio-row, .pill-row + p { margin-top: 24px; }

/* A Listen button in a table cell sits at the cell's right edge, out of the
   flow, so it doesn't make its row taller and push the row's words out of line. */
.table-responsive td:has(> .el-audio) { position: relative; padding-right: 56px; }
.table-responsive td > .el-audio { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
