/* Header: utility bar, main bar, mobile menu. */
.py-header { position: relative; z-index: 50; background: var(--py-white); color: var(--py-ink); }

/* Utility bar */
.py-utility { background: var(--py-surface); border-bottom: 1px solid var(--py-hairline); }
.py-utility__inner { min-height: 54px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; font-size: 15px; }
.py-utility__nav, .py-mainnav, .py-mobile-menu__main, .py-mobile-menu__more { margin: 0; padding: 0; list-style: none; }
.py-utility__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 34px; }
.py-utility__nav a { display: inline-flex; align-items: center; gap: 9px; min-height: 54px; color: var(--py-ink); text-decoration: none; }
.py-utility__nav .is-active > a { font-weight: 700; }
.py-utility__nav a:hover span:first-child, .py-mainnav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.py-lock { flex: none; }

/* Main bar */
.py-mainbar { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.py-mainbar__logo { display: inline-flex; flex: none; }
.py-logo { display: block; height: 72px; width: auto; }
.py-logo--text { display: inline-flex; align-items: center; height: auto; font-size: 26px; font-weight: 700; color: var(--py-navy); }
.py-mainnav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 34px; }
.py-mainnav a { position: relative; display: inline-flex; align-items: center; min-height: 48px; font-size: 15px; color: var(--py-ink); text-decoration: none; }
.py-mainnav .is-active > a { font-weight: 700; }
.py-mainnav__dot { position: absolute; left: calc(50% - 3px); bottom: 2px; width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.py-mainnav .is-active .py-mainnav__dot { background: var(--py-gold); }

/* Mobile toggle (hidden on desktop) */
.py-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.py-menu-toggle__bar { width: 22px; height: 2px; background: var(--py-ink); }

/* Mobile menu */
.py-mobile-menu { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; overflow-y: auto; background: var(--py-dark); color: var(--py-white); }
.py-mobile-menu[hidden] { display: none; }
.py-mobile-menu__bar { flex: none; height: 64px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.py-mobile-menu__logo { display: inline-flex; background: var(--py-white); padding: 2px 8px; }
.py-mobile-menu .py-logo { height: 46px; }
.py-mobile-menu__close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--py-white); font-size: 28px; line-height: 1; cursor: pointer; }
.py-mobile-menu__main-wrap { padding: 8px 22px 0; }
.py-mobile-menu__main a { display: flex; align-items: center; min-height: 58px; border-bottom: 1px solid #3A3A40; color: var(--py-white); font-size: 28px; text-decoration: none; }
.py-mobile-menu__main .is-active > a { color: var(--py-gold); }
.py-mobile-menu__more-wrap { padding: 22px 22px 0; }
.py-mobile-menu__more { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.py-mobile-menu__more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #D2D2D8; text-decoration: none; }
.py-mobile-menu__foot { margin-top: auto; padding: 24px 22px 26px; }

/* Let's Connect never wraps or shrinks. On desktop the bar stays one row: if the menu is ever too
   long for its space (items added later), it wraps inside its own column, not under the logo. */
.py-mainbar__cta { flex: none; white-space: nowrap; }
@media (min-width: 1025px) {
	.py-mainbar { flex-wrap: nowrap; }
	.py-mainnav-wrap { min-width: 0; }
	.py-mainnav { justify-content: center; }
}

/* Smaller laptops (13-inch screens, often at 125 % scaling: about 1024-1280 px wide). Owner, 2026-11-23. */
@media (max-width: 1280px) {
	.py-mainbar { column-gap: 24px; }
	.py-mainnav { gap: 0 24px; }
}

@media (max-width: 1180px) {
	.py-mainbar { column-gap: 20px; }
	.py-logo { height: 60px; }
	.py-mainnav { gap: 0 18px; }
	.py-mainnav a { font-size: 14px; }
	.py-mainbar__cta { height: 44px; padding: 0 20px; font-size: 14px; }
	.py-utility__nav { gap: 0 26px; }
}

/* Mobile menu from 1024 px down (was 900): below that the desktop bar cannot hold the menu. */
@media (max-width: 1024px) {
	.py-utility, .py-mainnav-wrap, .py-mainbar__cta { display: none; }
	.py-mainbar { flex-wrap: nowrap; height: 64px; padding-block: 0; padding-inline: 18px; }
	.py-logo { height: 50px; }
	.py-menu-toggle { display: flex; }
}
