/*
 * faq block (PublicContentFaqBlock): each question is a white card (border, small radius, small shadow) with the
 * +/− marker on the right; the base accordion rules live in public-content.css, this file only restyles them.
 */
.public-content .content-faq-list {
	display: grid;
	gap: .6rem;
	border-top: 0;
}
.public-content .content-faq-item {
	border: 1px solid var(--content-border);
	border-radius: var(--content-radius);
	background: var(--content-card);
	box-shadow: var(--content-shadow);
}
.public-content .content-faq-item summary {
	padding: 1rem 3rem 1rem 1.25rem;
	border-radius: var(--content-radius);
}
.public-content .content-faq-item summary::after { right: 1.1rem; top: .8rem; }
.public-content .content-faq-item[open] { border-color: var(--content-primary); }
.public-content .content-faq-item[open] summary { color: var(--content-primary); }
.public-content .content-faq-answer { padding: 0 1.25rem 1.1rem; }
.public-content .content-faq-answer p:last-child { margin-bottom: 0; }

/*
 * Deep links (js/public-content-faq.js): a question's id is its anchor. The link icon sits left of the +/− marker of an
 * opened question (closed <details> content is not rendered); scroll-margin-top keeps a question reached by a plain
 * fragment jump (no JavaScript) clear of the sticky site navbar (76 px; no navbar height property exists).
 * html.content-faq-deep-link: set by the script while it positions a linked question, so the theme's smooth root
 * scrolling cannot animate (or let the browser's own fragment scroll glide over) that positioning.
 */
.public-content .content-faq-item { position: relative; scroll-margin-top: 5.5rem; }
html.content-faq-deep-link { scroll-behavior: auto; }
.public-content .content-faq-item[open] summary { padding-right: 5rem; }
.public-content a.content-faq-link {
	position: absolute;
	top: .85rem;
	right: 2.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--content-radius);
	color: var(--content-muted);
	text-decoration: none;
}
.public-content a.content-faq-link:hover,
.public-content a.content-faq-link:focus-visible { color: var(--content-primary); }
.public-content a.content-faq-link:focus-visible { outline: 2px solid var(--content-primary); outline-offset: 2px; }
.public-content .content-faq-link.is-copied .fa::before { content: "\f00c"; }

/* Notice for a link to a question that no longer exists or is hidden: fixed at the bottom centre, so nothing moves. */
.public-content .content-faq-notice {
	position: fixed;
	left: 50%;
	bottom: 1rem;
	z-index: 1030;
	transform: translateX(-50%);
	/* Sized by its text, not by the half viewport that left: 50% leaves; max-width keeps it inside the gutter. */
	width: max-content;
	display: flex;
	align-items: center;
	gap: .75rem;
	max-width: calc(100% - 2rem);
	padding: .75rem 1rem;
	border: 1px solid var(--content-border);
	border-left: 4px solid var(--content-primary);
	border-radius: var(--content-radius);
	background: var(--content-card);
	box-shadow: var(--content-shadow);
	color: var(--content-text);
}
/* Inserted empty and filled in one step (the live region exists first): no box until then, so it never grows in place. */
.public-content .content-faq-notice:empty { padding: 0; border: 0; box-shadow: none; }
.public-content .content-faq-notice-close {
	min-width: 2rem;
	min-height: 2rem;
	border: 0;
	background: transparent;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--content-text);
	cursor: pointer;
}
.public-content .content-faq-notice-close:focus-visible { outline: 2px solid var(--content-primary); outline-offset: 2px; }
