/* Product bar. Rules sit in :where() so a product sheet can override them. The rules live in this file. */
.pbar { padding-block: var(--space-sm); background: var(--cream-white); color: var(--ink); border-bottom: 1px solid var(--line); font-family: var(--sans); }
:where(.pbar__bar) { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-xl); }
:where(.pbar__brand) { display: inline-flex; align-items: center; gap: var(--space-md); flex: none; min-height: 44px; color: inherit; text-decoration: none; }
:where(.pbar__pmark) { width: 32px; height: 32px; flex: none; }
:where(.pbar__name) { font: 600 1rem/1.25 var(--sans); white-space: nowrap; }
:where(.pbar__links) { display: flex; flex: 1 1 100%; min-width: 0; gap: var(--space-2xs); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
:where(.pbar__links a) { display: inline-flex; flex: none; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); color: inherit; font: 600 .875rem/1.25 var(--sans); text-decoration: none; }
:where(.pbar__links a:hover) { background: var(--sage-50); }
:where(.pbar__cta) { display: flex; align-items: center; gap: var(--space-sm); margin-left: auto; }
:where(.pbar__trial) { display: inline-flex; white-space: nowrap; }
:where(.pbar__langs) { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-lg); font-size: .875rem; }
:where(.pbar__lang) { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
:where(a.pbar__lang) { text-decoration: underline; text-underline-offset: 3px; }
:where(.pbar__lang[aria-current]) { font-weight: 600; }
@media (max-width: 899px) {
  /* On phones the row becomes brand + controls, then the section links, then the languages under them. */
  :where(.pbar__cta) { order: 2; }
  :where(.pbar__links) { order: 3; }
  :where(.pbar__langs) { order: 4; flex-basis: 100%; }
}
@media (min-width: 900px) { :where(.pbar__links) { flex: 0 1 auto; } }
/* The languages now sit inside the product bar, so the layout's separate line under the header is a duplicate. */
body.pd-brand > .lang-switch { display: none; }
/* On phones the product bar's own trial button is enough; the site header keeps its copy only on pages without a bar. */
@media (max-width: 520px) {
  body:has(.pbar__trial) .site-header__trial { display: none; }
}
