/*
 * ngc-polish-1.css - interface polish
 *
 * Hides controls that render but carry no information for the visitor.
 *
 * Every rule is scoped to the absence of real content, so it stops applying
 * the moment that content exists. Nothing that is merely waiting to be filled
 * in - operator rows, author, reviewer, contact, privacy copy, logos - can be
 * suppressed by this file: those all carry visible placeholder text and are
 * matched by none of the selectors below.
 *
 * Sets display only. No colour, layout, spacing, typography or breakpoint
 * rules, and no changes to markup, SEO or behaviour.
 */

/* Floating language switcher with nothing to switch to.
 *
 * TranslatePress renders the control together with an empty dropdown list when
 * only one language is configured, so the visitor gets a button that opens a
 * blank panel - and, on a UK domain, a US flag alongside it.
 *
 * Scoped on the absence of a selectable language item rather than on :empty,
 * because the dropdown contains a whitespace text node and :empty therefore
 * never matches it. Configure a second language and the item appears, this
 * rule stops matching, and the switcher comes back on its own.
 *
 * Browsers without :has() support drop the rule and show the switcher exactly
 * as it renders today, so the fallback is the current behaviour.
 */
.trp-floating-switcher:not(:has(.trp-switcher-dropdown-list .trp-language-item)) {
  display: none;
}
