/* Facepoint.pk v1.5: compact, single-line desktop utility header.
   This scoped final layer fixes broken social icon placement without affecting Core,
   editor content, ads, or custom post types. */
.fp-top-header .fp-reference-utility{
  display:grid; grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr);
  align-items:center; column-gap:clamp(12px,1.6vw,30px);
  direction:ltr; min-height:56px; height:auto; padding-block:0;
}
.fp-top-header .fp-utility-meta{display:flex; align-items:center;justify-self:start;gap:clamp(12px,2vw,30px);min-width:0;direction:ltr;}
.fp-top-header .fp-utility-date,.fp-top-header .fp-utility-location{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;line-height:1.55;font-size:12px;}
.fp-top-header .fp-reference-utility .language-switch{
 display:flex;align-items:stretch;justify-self:center;justify-content:center;align-self:stretch;
 flex:none;min-width:0;max-width:100%;height:auto;min-height:56px;flex-wrap:nowrap;gap:2px;margin:0;direction:ltr;
}
.fp-top-header .fp-reference-utility .language-switch a{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
 height:auto;min-height:56px;padding:5px clamp(7px,.85vw,14px);
 white-space:nowrap;line-height:1.55;font-size:12px;overflow:visible;
}
.fp-top-header .fp-utility-actions{min-width:0;display:flex;align-items:center;justify-self:end;justify-content:flex-end;direction:ltr;gap:10px;}
.fp-top-header .fp-top-social{display:block;margin:0;min-width:0;line-height:1;}
.fp-top-header .fp-top-social .fp-social{
 margin:0;padding:0;display:flex;flex-direction:row;flex-wrap:nowrap;
 align-items:center;justify-content:flex-end;gap:7px;direction:ltr;line-height:1;
}
.fp-top-header .fp-top-social .fp-social > .social-link{
 box-sizing:border-box;display:inline-flex!important;position:static!important;
 align-items:center;justify-content:center;flex:0 0 29px;
 width:29px;height:29px;min-width:29px;max-width:29px;
 margin:0!important;padding:0!important;border-radius:50%;
 font-family:Arial,sans-serif!important;font-size:12px;line-height:1!important;vertical-align:middle;
}
.fp-top-header .fp-top-social .fp-social > .social-link svg{
 display:block!important;width:16px!important;height:16px!important;
 flex:0 0 16px;max-width:16px;max-height:16px;fill:currentColor;
}
.fp-top-header .fp-utility-actions .fp-utility-search{
 display:grid;place-items:center;width:36px;min-width:36px;height:30px;
 border-left:1px solid rgba(255,255,255,.3);padding-inline-start:10px;
}
/* Do not allow a very tall Urdu font line box to stretch the header. */
body.facepoint-lang-ur .fp-reference-utility .language-switch a,
body.facepoint-lang-ur .fp-reference-utility .fp-utility-date,
body.facepoint-lang-ur .fp-reference-utility .fp-utility-location{line-height:1.7;padding-block:6px;}
body.facepoint-lang-ur .fp-top-social .social-link{line-height:1!important;}
.fp-top-header .brand-content{min-height:126px;padding-block:12px;}
.fp-top-header .brand-content .brand-logo,.fp-top-header .brand-content .brand-native{min-width:0;}
.fp-top-header .brand-logo .fp-english-logo{max-height:94px;object-fit:contain;}
.fp-top-header .brand-native .fp-native-wordmark{max-height:98px;object-fit:contain;}
.fp-top-header .nav-content{direction:rtl;}
/* Visible desktop dropdown menus; prevent clipping at the horizontal nav shell. */
@media(min-width:1101px){
 .fp-top-header .primary-nav{overflow:visible!important;}
 .fp-top-header .primary-nav .nav-links{width:100%;min-width:0;flex-wrap:wrap;justify-content:space-between;}
 .fp-top-header .primary-nav .nav-links>li{min-height:53px;}
 .fp-top-header .primary-nav .nav-links>li>a{padding:9px clamp(7px,.72vw,14px);}
}
@media(max-width:1450px){
 .fp-top-header .fp-reference-utility{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;}
 .fp-top-header .fp-utility-meta{gap:12px;}
 .fp-top-header .fp-utility-location{display:none;}
 .fp-top-header .fp-reference-utility .language-switch a{padding-inline:8px;}
 .fp-top-header .fp-top-social .fp-social{gap:5px;}
 .fp-top-header .fp-top-social .fp-social>.social-link{height:26px;width:26px;min-width:26px;flex-basis:26px;}
}
@media(max-width:1100px){
 .fp-top-header .fp-reference-utility{grid-template-columns:minmax(0,1fr) auto;min-height:52px;}
 .fp-top-header .fp-utility-meta{display:none;}
 .fp-top-header .fp-reference-utility .language-switch{justify-self:start;min-height:52px;overflow-x:auto;scrollbar-width:thin;max-width:100%;}
 .fp-top-header .fp-reference-utility .language-switch a{min-height:52px;}
 .fp-top-header .fp-top-social{display:none;}
 .fp-top-header .fp-utility-actions{justify-self:end;}
 .fp-top-header .brand-content{min-height:102px;}
 .fp-top-header .brand-logo .fp-english-logo,.fp-top-header .brand-native .fp-native-wordmark{max-height:75px;}
 .fp-top-header .mobile-menu-button{display:flex;align-items:center;gap:8px;}
 .fp-top-header .primary-nav{display:none;max-height:70vh;overflow-y:auto;overflow-x:hidden;}
 .fp-top-header .primary-nav.is-open{display:block;}
 .fp-top-header .primary-nav .nav-links{width:100%;min-width:0;flex-direction:column;align-items:stretch;}
 .fp-top-header .primary-nav .nav-links>li{width:100%;display:block;min-height:0;}
 .fp-top-header .primary-nav .nav-links>li>a{min-height:42px;}
 .fp-top-header .primary-nav .sub-menu{position:static;width:100%;max-width:100%;box-shadow:none;columns:1;}
 .fp-top-header .primary-nav .menu-item-has-children>.sub-menu{display:block;}
}
@media(max-width:700px){
 .fp-top-header .fp-reference-utility{display:flex;flex-direction:row;align-items:stretch;gap:0;min-height:45px;padding-block:0;flex-wrap:nowrap;}
 .fp-top-header .fp-reference-utility .language-switch{min-width:0;width:100%;max-width:100%;height:auto;min-height:45px;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;flex:1 1 auto;gap:0;order:0;}
 .fp-top-header .fp-reference-utility .language-switch a{min-height:45px;height:45px;padding:3px 9px;line-height:1.5;font-size:11px;}
 .fp-top-header .fp-reference-utility .language-switch .fp-lang-flag{font-size:15px;}
 .fp-top-header .fp-utility-actions{display:none;}
 .fp-top-header .brand-content{min-height:0;padding-block:12px;}
 .fp-top-header .brand-logo .fp-english-logo,.fp-top-header .brand-native .fp-native-wordmark{max-height:67px;}
 .fp-top-header .header-search form,.facepoint-lang-ur .header-search form{height:48px;}
}
@media(max-width:420px){
 .fp-top-header .brand-content{column-gap:10px;}
 .fp-top-header .brand-logo .fp-english-logo,.fp-top-header .brand-native .fp-native-wordmark{max-height:52px;}
 .fp-top-header .fp-reference-utility .language-switch a{padding-inline:6px;}
}
