/*
 * The personal code banner (AIEO_DMM_Code_Banner; the designer's surface 2, direction B). Loaded only on a request that
 * prints it. Every colour is the theme's token: the accent, the page's background and lines, its text and the focus
 * ring; another theme's palette gives its own (FE-D1). The spacing and the type are the theme's presets.
 */
.aieo-onote {
	background: color-mix(in srgb, var(--wp--preset--color--accent, currentColor) 7%, var(--wp--preset--color--bg, transparent));
	border-bottom: 1px solid var(--wp--preset--color--line, currentColor);
	color: var(--wp--preset--color--fg, inherit);
	font-size: var(--wp--preset--font-size--sm, 0.875rem);
}

.aieo-onote[hidden] {
	display: none;
}

/*
 * Closing (the visitor's press; banner.js): the banner folds up and fades in the theme's base time, with the designer's
 * ease, so the page under it rises instead of jumping. Under reduced motion the script hides it at once.
 */
.aieo-onote.is-closing {
	overflow: hidden;
	opacity: 0;
	border-bottom-color: transparent;
	transition:
		height var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1),
		opacity var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1),
		border-bottom-color var(--wp--custom--rooster--motion--base, 200ms) cubic-bezier(.2, .7, .2, 1);
}

.aieo-onote__w {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3, 0.75rem);
	box-sizing: border-box;
	max-width: var(--wp--style--global--wide-size, 1280px);
	min-height: 52px;
	margin-inline: auto;
	padding-block: 8px;
	padding-inline: var(--wp--style--root--padding-left, 16px) calc(var(--wp--style--root--padding-right, 16px) + 44px);
	position: relative;
}

.aieo-onote__mark {
	flex: 0 0 auto;
	display: inline-grid;
	width: 20px;
	height: 20px;
	color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent, currentColor));
}

.aieo-onote__mark > * {
	width: 100%;
	height: 100%;
}

.aieo-onote__t {
	margin: 0;
	line-height: 1.45;
}

.aieo-onote__t b {
	font-weight: 600;
}

.aieo-onote__t code {
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 1px 6px;
	border: 1px dashed var(--wp--preset--color--fg, currentColor);
	white-space: nowrap;
}

.aieo-onote__x {
	position: absolute;
	right: calc(var(--wp--style--root--padding-right, 16px) - 10px);
	top: 50%;
	translate: 0 -50%;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.aieo-onote__xi {
	display: inline-grid;
	width: 18px;
	height: 18px;
}

.aieo-onote__xi > * {
	width: 100%;
	height: 100%;
}

.aieo-onote__x:focus-visible {
	outline: none;
	box-shadow: var(--wp--custom--rooster--focus-ring, 0 0 0 2px currentColor);
}
