/* Approved changes only: light mode, stable account controls and menu icons. */
.pm-theme-toggle,#pmThemeToggle,#themeBtn,.theme{display:none!important}
html{overflow-y:scroll;scrollbar-gutter:stable}
#pmOpenAuth,#loginBtn{visibility:hidden}
body>header .nav{min-height:72px}
.pm-auth-area,.nav-right{min-width:140px;justify-content:flex-end}
#searchToggle,#searchPanel,.nav-actions{display:none!important}
#pmUserDropdown a,#pmUserDropdown button,#dropdown a,#dropdown button{display:flex;align-items:center;gap:12px}
#pmUserDropdown .danger,#dropdown .danger{color:#ed2857!important}
.pm-menu-icon{width:20px;height:20px;flex-shrink:0}
#communitySearchToggle{width:40px;height:40px;border:1px solid #dfe3eb;border-radius:12px;background:white;color:#344054;cursor:pointer}
#communitySearchPanel{padding-bottom:12px}#communitySearch{width:100%;padding:12px;border:1px solid #dfe3eb;border-radius:12px;background:white;color:#151821;font:inherit}
html[data-theme="light"] .modal-head{background:#0d1017;color:white}
html[data-theme="light"] .modal-head h2{color:white!important}
html[data-theme="light"] .form .field>label{color:#344054!important}
@media(max-width:760px){body>header .nav{min-height:56px!important}.pm-auth-area,.nav-right{min-width:36px}.pm-auth-area{grid-column:3!important}.nav-actions{display:none!important}}

/* Keep Community controls available on narrow screens. */
.pm-filter-anchor{display:contents}
@media(max-width:800px){.community-feed-sticky.pm-mobile-pinned{position:fixed!important;left:0;right:0;z-index:47}.filters.pm-mobile-pinned{position:fixed!important;z-index:46;margin:0!important;background:#fff!important;box-sizing:border-box}.pm-filter-anchor{display:block;min-width:0}}

/* Match the Community sign-in button to the other public pages. */
html[data-theme="light"] #loginBtn{background:linear-gradient(135deg,#ff4f78,#ff6f86)!important;color:#fff!important;border:1px solid rgba(255,79,120,.28)!important;box-shadow:0 8px 22px rgba(255,79,120,.18)!important;opacity:1!important}
html[data-theme="light"] #loginBtn:hover{background:linear-gradient(135deg,#ff426f,#ff647f)!important;color:#fff!important;transform:translateY(-1px)}

/* Keep the four Community post actions aligned on mobile. */
@media(max-width:760px){
 .post-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px!important;padding-left:12px;padding-right:12px}
 .post-actions>.action{min-width:0;white-space:nowrap;font-size:12px;padding:7px 2px;text-align:center;justify-content:center}
 .post-actions>.owner-actions{grid-column:1/-1}
}


/* Ratings menu keeps existing header and bottom navigation dimensions. */
.pm-ratings-nav-item{position:relative;display:flex;align-items:center}
.pm-ratings-destinations{display:none;position:absolute;z-index:150;top:100%;left:0;min-width:210px;padding:7px;background:#fff;border:1px solid #e1e3eb;border-radius:14px;box-shadow:0 14px 40px rgba(35,25,55,.16);color:#171923}
.pm-ratings-open>.pm-ratings-destinations{display:block}
.pm-ratings-destinations>a{display:block!important;margin:0!important;padding:11px 13px!important;border:0!important;border-radius:9px!important;background:white!important;color:#4c5669!important;font-size:14px!important;font-weight:750!important;line-height:1.5!important;white-space:nowrap;text-decoration:none!important;transform:none!important;box-shadow:none!important}
.pm-ratings-destinations>a:after,.pm-ratings-destinations>a:before{display:none!important}
.pm-ratings-destinations>a:hover,.pm-ratings-destinations>a:focus-visible,.pm-ratings-destinations>a[aria-current=page]{background:#fff0f6!important;color:#a33970!important}
.pm-ratings-nav-item>a[aria-haspopup=true]:focus-visible{outline:2px solid #ff527e;outline-offset:4px}
.mobile-bottom-nav{overflow:visible!important}
.mobile-bottom-nav>.pm-ratings-mobile-item{flex:1;min-width:0;display:flex;align-items:stretch;justify-content:center}
.mobile-bottom-nav>.pm-ratings-mobile-item>a{flex:1;width:100%;min-width:0}
.pm-ratings-mobile-item>.pm-ratings-destinations{top:auto;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);min-width:210px}
.pm-ratings-destinations>a{min-height:0!important}

/* Community has its own account/search controls; match its desktop navigation to Home. */
@media(min-width:801px){
 body>header:has(nav.links) .nav{gap:24px;justify-content:space-between}
 body>header:has(nav.links)>.container{width:min(calc(100% - 36px),1180px)}
 body>header:has(nav.links) .brand{gap:12px;font-size:1.55rem;letter-spacing:-.045em}
 body>header nav.links{margin-left:0;gap:25px;font-size:.94rem;font-weight:760}
}

/* Keep desktop navigation immediately before the account controls. */
@media(min-width:801px){
 body>header .nav>nav.nav-links,body>header .nav>nav.links{margin-left:auto}
 body>header .nav>.pm-auth-area,body>header .nav>.nav-right{margin-left:0}
}

/* Reserve the account slot while its session and profile are checked. */
@media(min-width:801px){
 body>header .nav>.pm-auth-area{flex:0 0 226px;width:226px;min-width:226px}
 body>header .nav>.nav-right{flex:0 0 226px;width:226px;min-width:226px}
 body>header .pm-user-menu,body>header .user-wrap{max-width:176px;min-width:0}
 body>header .pm-user-trigger,body>header .user-btn{max-width:176px;white-space:nowrap}
 body>header .pm-user-name,body>header .user-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body>header .pm-avatar,body>header #navAvatar{flex-shrink:0}
}
