/* Top bar fit (2026-11-19): the phone number and demo button stayed outside the bar when a business type was chosen
   (its label is longer), or on 1280-1920 px screens. Low-value top items are hidden where the bar runs out of room;
   every one of them is still reachable elsewhere. Loaded by every page right after fonts.css (scripts/pc/topfit-20261119). */
@media (min-width:1021px){
  /* «داستان موفقیت مشتریان» links to # ; «پادکست» goes to the blog, which is under «تازه ها» */
  .top .grow>a[href="#"],.top .grow>a[href$="/blog/"],.top .grow>a[href$="/podcast/"]{display:none!important}
  .top a.tel,.top a.demo{flex-shrink:0}
}
@media (min-width:1021px) and (max-width:1700px){
  /* «مشاوره کسب و کار»: the same page is under «ارتباط با ما» */
  .top .grow>a[href$="/contact-us/"],.top .grow>a[href$="/business-consulting/"]{display:none!important}
}
@media (min-width:1021px) and (max-width:1600px){
  /* «هوش مصنوعی در سول»: also under «قابلیت های جدید» */
  .top .grow>a[href$="/ai/"],.top .grow>a[href*="/ai-in-restaurant"]{display:none!important}
}
@media (min-width:1021px) and (max-width:1180px){
  /* «راهنما» is also in the footer; «آخرین وضعیت سول» keeps its status light, the label opens with it */
  .top .grow>a[href$="/support/"],.top .grow>a[href$="/help/"]{display:none!important}
  .top .grow .st>button .lbl{display:none!important}
}
/* Main row: the search, «ورود» and «ثبت نام» also ran past the left edge at 1021-1880 px. */
@media (min-width:1501px) and (max-width:1880px){
  header .srch span,header .srch kbd{display:none!important}
  header .srch{width:40px!important;padding:0!important;justify-content:center}
  .nav>.dd>button{padding:9px 10px}
  .nav>a.dm-l{white-space:normal;max-width:9.5em;line-height:1.35;padding:6px 10px;font-size:13.5px}
}
@media (min-width:1021px) and (max-width:1500px){
  .nav>.dd>button{padding:8px 8px;font-size:13.5px}
}
@media (min-width:1021px) and (max-width:1560px){
  /* «نرم افزار رستوران رایگان» and «نرم افزار رستوران آفلاین»: still in the page (and the offline page under «قابلیت های جدید») */
  .nav>a.dm-l{display:none!important}
}
@media (min-width:1021px) and (max-width:1240px){
  /* menu labels on two lines, like the site already does for the two links above at 1021-1500 px */
  .nav>.dd>button{white-space:normal;max-width:10.5em;line-height:1.35;padding:6px 8px;font-size:13px;text-align:start}
}
@media (min-width:1021px) and (max-width:1100px){
  .nav>.dd>button{max-width:9em}
}
