/* 07 On Air: a tag at the pointer that reads its note out word by word, with
   an on-air light and a level meter (js/variations/onAir.js). The tags live
   in a layer fixed to the screen, outside the page's scrolling content */

/* frosted glass, as the bar of numbers: lighter at the top, like light catching
   the glass, blurring the text behind it, with a faint shade so its own text reads */
/* the tags' layer, fixed to the screen over the page and under the bar of numbers */
.on-air-layer {
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
}

.on-air-layer .card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	max-width: min(340px, 100vw - 2 * var(--margin));
	padding: 15px;
	border-radius: 15px;
	background: linear-gradient(180deg, rgb(255 255 255 / 15%), rgb(255 255 255 / 6%)), rgb(10 8 9 / 20%);
	box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	transform-origin: 0 0;
}

/* the on-air light and the level meter, on the note's first line */
.on-air {
	display: flex;
	flex: none;
	align-items: flex-end;
	gap: 2px;
	height: 12px;
	margin-top: calc((var(--leading-small) - 12px) / 2);
}

.on-air__light {
	align-self: center;
	width: 6px;
	height: 6px;
	margin-right: 5px;
	border-radius: 50%;
	background: var(--color-accent);
	box-shadow: 0 0 8px var(--color-accent);
}

.on-air__bar {
	width: 2px;
	height: 100%;
	background: var(--color-strong);
	transform-origin: 50% 100%;
	transform: scaleY(0.15);
}

/* at the cards' text size */
.on-air-layer .card__text {
	font-size: var(--size-small);
	line-height: var(--leading-small);
	color: var(--color-strong);
}
