/*
 * Follow — the inline "alerts by email" popover behind a Follow button.
 * Enqueued by Blocks\Partials\Follow from render, so the three blocks that
 * draw the button (section head, author hero, scoreboard) share one sheet.
 * The <summary> carries the block's own pill class, so the button keeps each
 * block's look; only the disclosure and the card are styled here.
 */
.anps-follow {
	position: relative;
	display: inline-block;
}

.anps-follow > summary {
	list-style: none;
	cursor: pointer;
}

.anps-follow > summary::-webkit-details-marker {
	display: none;
}

.anps-follow__pop {
	position: absolute;
	z-index: 30;
	inset-inline-start: 0;
	inset-block-start: calc( 100% + 0.5rem );
	display: grid;
	gap: 0.625rem;
	inline-size: min( 20rem, calc( 100vw - 3rem ) );
	padding: 1rem;
	border: 1px solid var( --anps-line-30, currentColor );
	border-radius: var( --wp--custom--radius--md, 12px );
	background: var( --wp--preset--color--paper );
	color: var( --wp--preset--color--contrast );
	box-shadow: 0 18px 44px rgb( 0 0 0 / 0.35 );
	font-family: var( --wp--preset--font-family--body, inherit );
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: start;
	text-transform: none;
}

/* The scoreboard's actions sit at the end of the line; open towards the page. */
.anps-scoreboard__actions .anps-follow__pop {
	inset-inline-start: auto;
	inset-inline-end: 0;
}

.anps-follow__prompt,
.anps-follow__error {
	margin: 0;
}

.anps-follow__error {
	font-size: 0.875rem;
	color: var( --wp--preset--color--error );
}

.anps-follow__field {
	display: block;
}

.anps-follow__field input {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 2.75rem;
	padding: 0 0.875rem;
	border: 1px solid var( --anps-line-45, currentColor );
	border-radius: var( --wp--custom--radius--control, 8px );
	background: var( --wp--preset--color--surface );
	color: var( --wp--preset--color--contrast );
	font: inherit;
}

.anps-follow__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-block-size: 2.75rem;
	padding: 0 1rem;
	border: 0;
	border-radius: var( --wp--custom--radius--control, 8px );
	background: var( --wp--preset--color--primary );
	color: var( --wp--preset--color--on-primary );
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.anps-follow__feed {
	font-size: 0.8125rem;
	color: var( --wp--custom--text--subtle, var( --wp--preset--color--muted ) );
}

.anps-follow__hp {
	position: absolute;
	inset-inline-start: -624.9375rem;
}

.anps-follow__done svg {
	color: var( --wp--preset--color--success );
}
